We need that the FlattenField method will not damage the file visibility, so the layers that were invisible should stay invisible. Is there a way to achieve that?
Thanks for your inquiry and sorry for the delayed response.
We are testing the scenario and will get back to you shortly. Please be patient.
Thanks for your patience.
We have tested the scenario with following code snippet and observed that some PDF layers are visible after flattening the document, which were invisible before.
Document doc = new Document(dataDir + "ge309A2IN.pdf"); doc.Flatten(); doc.Save(dataDir + "738676_Flat_out.pdf");
Therefore, I have logged an issue as PDFNET-42982 in our issue tracking system. We will further investigate the issue and keep you posted with the status of its correction. Please be patient and spare us little time.
We are sorry for the inconvenience.