Aspose.pdf -> 21.9 (DotNet version) (We have recently upgraded from 20.3 as per your support recommendation)
• Document flattening doesn’t work for documents with more than 50 pages [SupportTicket].
• Annotation flattening for Highlight is inconsistent.
Basically we are trying to create a pdf document with Aspose annotations applied on them. So we are creating an Annotation object and adding it on to annotations collection on a page object and perform annotation flattening. Code snippet below. With this, the Highlight annotation doesn’t get rendered correctly. Eg. var Annotation = AnnotatePage(pageSelected, clr, opacity, type, title, createdDate, subcoords); pageSelected.Annotations.Add(Annotation); Annotation.Flatten();
And while trying other workaround, we observed that performing a Document flattening instead of Annotation flattening, renders the Highlight annotation as expected.
But this introduced another limitation, where if the document is more than 50 pages none of the annotations are being flattened on the document. It works fine for documents with less than 50 pages.
Original doc with Highlight annotation:
Snippet1.jpg (13.8 KB)
o Highlight is not being applied
o Right section indicates there are no unflatten annotations
Snippet2.jpg (19.2 KB)
o Annotations are retained, but none of them are flattened, as seen on the right comments section.
Snippet3.jpg (36.5 KB)
We expect all the annotation to be flattened on the document without any inconsistency, irrespective of number of pages on the document.
We were informed that these issues were addressed in the 21.9 version of Aspose libraries. Hence we have got it upgraded. But it still doesn’t seem to work. Please help.