Check if a PDF file has been flattened?

Is there anyway to check if a PDF file has been flattened?

Hi Wayne,

The easiest way would probably be to check the PdfDocument.Form.Fields collection to see if there are no fields.

Regards,
Mario