Remove some form fields

Remove some form fields

Forum member · Jan 18, 2011
I need to remove certain form fields from a merge document and leave the rest before saving. Is this possible? Mike

Re: Remove some form fields

Support · Jan 18, 2011
Hello, It is not possible to remove selected form fields from the already existing PDF document using our DynamicPDF Merger for .NET product but you can make the fields read only(non editable) by using the IsReadOnly Boolean property of the FormField class and setting it to true but the field is available for filling dynamically. Below is the sample code for it. mergedoc.Form.Fields[0].IsReadOnly = true; If you want to remove all the fields from already existing PDF document then you can use MergeOptions class and set FormFields Boolean property to false and this will not preserve any of the fileds in the final PDF document. Below is the code for removing all the fields from the PDF document. MergeOptions options = new MergeOptions(); options.FormFields = false; MergeDocument mergedoc = new MergeDocument((@"C:\Temp\Test.pdf" ,options); Thanks, ceTe Software Support Team