Remove the one field from the form

Remove the one field from the form

Forum member · Oct 22, 2009
Hi. I want to remove the one special field from the form. How can I do that? I try to use the code below, but it does not work. MergeDocument document = new MergeDocument("file.pdf"); document.Form.Fields.Remove(document.Form.Fields["txt"]); document.Draw("file1.pdf");

Re: Remove the one field from the form

Support · Oct 22, 2009
Hello, It is not possible to remove the form fields from an existing PDF document. However you can make them read-only. If you do not want to see them on the PDF then you will have to add a rectangle on top of the field with some fill color. You can get the X, Y position and width and height of the form fields so that you can add rectangle at same position. Thanks, ceTe Software Support Team.