Please try this and tell if it works as wished. It copies all
annotations except those from Acroform.
List<PDAnnotation> annotations = page.getAnnotations();
for (PDAnnotation ann : doc.getPage(sourcePage - 1).getAnnotations())
{
if (ann instanceof PDAnnotationWidget)
{
annotations.add(ann);
}
}
Tilman
Am 15.11.2017 um 00:47 schrieb Dale King:
I am doing PDF imposition following the SuperImpose example (
https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/SuperimposePage.java?view=markup)
and the content is appearing. What doesn't appear on the superimposed page
however are the annotations on the original page.
Is it possible to do superimpostion including the annotations?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]