fop 0.95 中受密码保护的 pdf 的 xsl fo 基本链接问题

发布于 2024-08-14 17:48:53 字数 626 浏览 1 评论 0原文

我已经使用来自 apache 基金会的 fop 0.95 引擎的 xsl fo 成功生成了受密码保护的 pdf。现在问题出在指定了外部目标的基本链接上。单击链接不再起作用。悬停时,链接会显示以下形式的工具提示:“file:///C:/myfolder/some-strange-special-characters”。但是,这可以成功地处理普通的不受保护的 pdf,并且悬停时会显示以下工具提示:“http://www.mysite。 com”。我应该怎么办?

我使用以下命令行选项使用 fop 0.95 从 xml 生成受密码保护的 pdf:

fop.bat -u myPassword -xml sample.xml -xsl sample.xsl -pdf sample.pdf

放置链接的语法是:

<fo:block>
   <fo:base-link external-destination="http://www.mysite.com"></fo:base-link>
</fo:block>

谢谢。

I have successfully generated password protected pdf using xsl fo from apache foundation's fop 0.95 engine. Now the problem comes with the base-link with external-destination specified. Clicking the links work no more. On hover, the link shows the tooltip of the form: "file:///C:/myfolder/some-strange-special-characters". However, this works successfully with the normal unprotected pdf, and on hover shows the following tooltip: "http://www.mysite.com". What should I do?

I use the following command line option to generate password protected pdf from xml using fop 0.95:

fop.bat -u myPassword -xml sample.xml -xsl sample.xsl -pdf sample.pdf

The syntax for placing link is:

<fo:block>
   <fo:base-link external-destination="http://www.mysite.com"></fo:base-link>
</fo:block>

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

海之角 2024-08-21 17:48:53

这似乎是一个已修复但未实际发布的错误:/

https://issues .apache.org/jira/browse/FOP-916

编辑:此错误的修复已包含在 FOP 2.2 中

It seems to be a bug that is fixed but not actually released :/

https://issues.apache.org/jira/browse/FOP-916

EDIT: the fix for this bug was included in FOP 2.2

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文