Hi,

I'm looking for a way to remove a form field.
Simply removing the field from the field list and saving the PDF does not cut it: PDDocumentCatalog documentCatalog = pdfDocument.getDocumentCatalog();
        PDAcroForm acroForm = documentCatalog.getAcroForm();
        List<PDField> fields = acroForm.getFields();
        fields.remove(theFieldToBeRemove);
        pdfDocument.save(aFile);
I'm still left with the appearance.
Could someone explain to me how to completely remove a field?


Kind Regards,
Frank.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to