Need to flatten PDF layers as part of redacting files to assure that the redacted info is no longer available. I have not found the functionality in the documentation. Is it possible?
was this feature ever implemented?
i need to flatten the layers in my pdfs but cannot find any function to do this.
We do not offer any separate functionality to flatten the layers in PDF. The layers are automatically flattened in PDFA format. You can convert your PDF into PDFA in order to obtain flattened layer PDF:
Document doc = new Document("35955-1.pdf"); doc.Convert(new MemoryStream(), PdfFormat.PDF_A_1A, ConvertErrorAction.Delete); doc.Save("35955-1.pdf");