How to create pdfformfields using iTextSharp?

前端 未结 3 1310
再見小時候
再見小時候 2020-12-21 14:25

I am using iTextSharp and CSharp for creating the pdf. I need to add formfields like checkbox, radiobutton and dropdown which can not be edited.

I used this..

<
3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-21 15:09

    You do not need to use a PdfStamper to create AcroForm form fields in a PDF, PdfWriter also allows you to.

    Unfortunately you neither said in which way your code didn't work nor what exact requirements you have; still some sample code might bring you on track:

    Have a look at chapter 8 of iText in Action, 2nd edition; especially the sample Buttons will give you numerous hints on how to create radio buttons and check boxes. The sample ChoiceFields will show you how to create list and combo boxes.

提交回复
热议问题