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");
Remove the one field from the form
Re: Remove the one field from the form
Support · Oct 22, 2009Hello,
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.