Using Foxit .NET SDK in an application to flatten a PDF. When I open the document using Phantom PDF document appears to be flattened. When the document is opened using Adobe Reader, the document appears not to be flattened and the form fields accessible. This is the code I'm currently using:
// Code added to "Flatten" the PDFs
SignatureFieldFlatteningOptions sFFO = new SignatureFieldFlatteningOptions();
sFFO = SignatureFieldFlatteningOptions.Retain;
FormFlatteningOptions fFO = new FormFlatteningOptions();
fFO.DigitalSignatures = sFFO;
mergeDocument.FormFlattening = fFO;
mergeDocument.CompressionLevel = 9;
byte[] pdfModifiedOutput = mergeDocument.Draw();
Is there something I should be doing differently? Has anyone else seen this problem?
Well, I found out that the problem is that I didn't have the true nature of the problem described to me. Turns out that users are using the "Typewriter" feature of Foxit PhantomPDF. The comments added by the typewriter remain editable and movable after the file has been "flattened". Any reason why this is and how I could get these "fields" to flatten?