如何解决PAC工具在使用apache FOP生成的pdf中生成的“DisplayDocTitle键未设置为true”错误

时间:2016-05-04 08:55:55

标签: pdf xslt apache-fop

我正在尝试使用ApacheFOP生成pdf并使其可访问。当我运行PAC工具以找出可访问性错误时,我们收到错误“DisplayDocTitle key未设置为true”.Below是xsl:

            <pdf:dictionary type="Catalog" xmlns:pdf="http://xmlgraphics.apache/org/fop/extensions/pdf">
              <pdf:entry key="PageMode" type="name">FullScreen</pdf:entry>
              <pdf:entry key="PageLayout" type="name">SinglePage</pdf:entry>
              <pdf:dictionary type="normal" key="ViewerPreferences">
                <pdf:entry key="HideToolbar" type="boolean">true</pdf:entry>
                <pdf:entry key="HideWindowUI" type="boolean">true</pdf:entry>
                <pdf:entry key="DisplayDocTitle" type="boolean">true</pdf:entry>
                <pdf:entry key="NonFullScreenPageMode" type="name">UseThumbs</pdf:entry>
              </pdf:dictionary>
            </pdf:dictionary>

1 个答案:

答案 0 :(得分:0)

通过升级ApacheFOP最新版本2.1来解决此问题。