forms - 使用 ITextSharp 创建可填写的 PDF 表单

标签 forms pdf itextsharp field

我使用 Acrobat Adob​​e 8 创建了一个包含可填写字段的 PDF 文件。

可以用 ITextSharp 而不是 Adob​​e 来编程吗?

注意:我不是指使用 ITextSharp 填写 PDF,而是使用 ITextSharp 在 PDF 文件上创建可填写字段。

任何代码将不胜感激。

感谢您的时间!

最佳答案

您可以使用 iText[Sharp] 创建包含可填写字段的 PDF,但它们看起来不如 Adob​​e Acrobat,后者是一个更好的设计工具。

通过可填写的字段,我猜你的意思是 TextField .这是一个 link with some simple example code来自 the book让你开始。具体看CreatePdf()CellLayout()方法,以及 iText API如果您需要更多信息。

关于forms - 使用 ITextSharp 创建可填写的 PDF 表单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9350186/

相关文章:

python - 在 Report Lab 中是否有获得 float div 的解决方法?

google-chrome - 使用 chrome --print-to-pdf --headless 太快地打印 html?

c# - 使用 iTextSharp 从 PDF 中删除第一页

php - 文本框在 Firefox 3.6 中无法正确显示

html - 如何获得完全独立的菜单

objective-c - 异或或其他简单的文件混淆方法 ios objective c

pdf - iTextSharp 可以将 PDF 文档转换为 PDF/A

image - 使用/CCITTFaxDecode过滤器从PDF中提取图像

php - 使用变量作为文件名写入 PHP 文件

javascript - 将 JavaScript 数据发送到 PHP 页面