我正在尝试使用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>
答案 0 :(得分:0)
通过升级ApacheFOP最新版本2.1来解决此问题。