如何解决“DisplayDocTitle key 未设置为 true"PAC 工具在使用 apache FOP 生成的 pdf 中生成的错误 [英] How to resolve "DisplayDocTitle key is not set to true" error generated by PAC tool in a pdf generated using apache FOP

查看:19
本文介绍了如何解决“DisplayDocTitle key 未设置为 true"PAC 工具在使用 apache FOP 生成的 pdf 中生成的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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>

推荐答案

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

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

这篇关于如何解决“DisplayDocTitle key 未设置为 true"PAC 工具在使用 apache FOP 生成的 pdf 中生成的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆