Creating a fillable PDF form with ITextSharp

余生颓废 提交于 2019-12-01 21:24:03

问题


I have created a PDF file using Acrobat Adobe 8 that contains fillable fields.

Can that be programmed with ITextSharp instead of Adobe?

Note: I am not referring to filling out the PDF with ITextSharp, instead I would like to create the fillable fields on the PDF file using ITextSharp.

Any code would be appreciated.

thank you for your time!


回答1:


You can create PDFs that contain fillable fields with iText[Sharp], but they won't look as nice as Adobe Acrobat, which is a much better design tool.

By fillable fields, I'm guessing you mean a TextField. Here's a link with some simple example code from the book to get you started. Specifically, take a look at the CreatePdf() and CellLayout() methods, and the iText API if you need more information.



来源:https://stackoverflow.com/questions/9350186/creating-a-fillable-pdf-form-with-itextsharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!