Flatteningannotations removes all annotaions except for form fields

The flatteningannotations method deletes annotations such as circle, text, stamp, etc...

string inFile = "c:\\input.pdf";

PdfAnnotationEditor pCE = new PdfAnnotationEditor();

pCE.BindPdf(inFile);

pCE.FlatteningAnnotations();

pCE.Save("c:\\index_b.pdf");

It will flatten form fields but it remove other annotations.

We simply want to flatten square, test, ellipse,stamp annotations.

Please help as we purchased to get this function and it is not working.

Dan

Hi Dan,

Please share a sample PDF file with us, so we could test the issue at our end. You’ll be updated with the results accordingly.

We’re sorry for the inconvenience.
Regards,

Attached are 2 files

the first (flatten.pdf) is a sample file with one annotation.

the second (input_b.pdf) is the resulting file with no annotations or flattened annotations

Hi Dan,

Thank you very much for sharing the sample PDF file. We’ll test the issue at our end and you’ll be updated with the results accordingly.

We’re sorry for the inconvenience.
Regards,

Hi Dan,

I have reproduced this issue at my end and logged it as PDFKITNET-17736 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.
Regards,