Pdf's fields should remain editable using itextsharp in asp.net

前端 未结 2 1970
不知归路
不知归路 2021-01-24 16:56

I have a fillable pdf. In which i have few textboxes.

I fill these fields by using following code(itextsharp).

 DataTable dt = new DataTable();
                  


        
2条回答
  •  广开言路
    2021-01-24 17:47

    Your code line

    stamper.FormFlattening = true;
    

    instructs iTextSharp to flatten the form fields, i.e. to integrate them into the page content and remove the form field annotations.

    As you want to keep the form fields as editable fields, don't flatten the form.

提交回复
热议问题