How to resolve “DisplayDocTitle key is not set to true” error generated by PAC tool in a pdf generated using apache FOP

懵懂的女人 提交于 2020-01-15 09:56:10

问题


I am trying to generate pdf using ApacheFOP and making it accessible. When I am running PAC tool to find out the accessibility errors we are getting the error “DisplayDocTitle key is not set to true”.Below is the 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:


This issue was resolved by upgrading the ApacheFOP latest version 2.1.



来源:https://stackoverflow.com/questions/37022931/how-to-resolve-displaydoctitle-key-is-not-set-to-true-error-generated-by-pac-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!