向 Apache Fop 添加注解 [英] Adding Annotation to Apache Fop

查看:38
本文介绍了向 Apache Fop 添加注解的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Apache Fop 呈现 PDF.我正在制作用于将 xml 转换为 PDF 的 XSLT 模板.我想使用 Apache Fop 在输出 PDF 中添加注释.我一直在搜索,它说 iText 支持向 pdf 添加注释.

I am rendering a PDF using Apache Fop. I am making XSLT templates which I used to convert xml to PDF. I want to put annotation in the output PDF using Apache Fop. I have been searching and it says iText has support for adding annotation to pdf.

是否可以在Apache Fop中添加注解?

推荐答案

iText 确实支持向 PDF 文档添加注释.我们在我们的产品中使用它.您可以执行以下操作:

iText DOES have support for adding annotations to PDF documents. We use that in our products. You can do the following:

  • 使用现有的 PDF,例如使用 Apache FOP 创建的 PDF.您需要编写一个 Java 程序来为该 PDF 文档添加注释.
  • 使用 iText API 从 XML 数据以编程方式创建 PDF 和注释(不涉及 Apache FOP).

我不确定这是否是您想要的.iText 不能替代 GUI 应用程序.

I'm not sure though whether this is what you want. iText is no replacement for a GUI application.

这篇关于向 Apache Fop 添加注解的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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