如何解决 PAC 工具在使用 apache FOP 生成的 pdf 中生成的 "DisplayDocTitle key is not set to true" 错误

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

我正在尝试使用 ApacheFOP 生成 pdf 并使其可访问。当我使用 运行 PAC 工具找出可访问性错误时,我们收到错误“DisplayDocTitle key is not set to true”。下面是 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>

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