How to resolve “DisplayDocTitle key is not set to

2019-08-12 14:19发布

问题:

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.