There is no option to set, but you could copy the annotations by doing
PDPage.getAnnotations() and taking these and adding them to what you get
with getAnnotations().
It should work unless there is some weirdness with page mediabox / cropbox.
Tilman
PS: PDF attachments don't go through.
Am 19.06.2018 um 11:00 schrieb Nicolas Lemasson:
Hi support,
I'm using pdfbox 2.0.8. I have some pdf files that I would like to
merge together in a single document. Multiple files can be used to
compose a single page, so they don't have the same size.
It works using the LayerUtility class, importing pages as layer and
appending layers to the new page. But doing this I loose link
annotations and hyper links are not clickable in the final document.
So is there a way to append a pdf page to an other document page,
keeping link annotations ? ( I can't use PDFMergerUtility because it
only "concatenates" pages, and i need to append content at specific
positions ).
To reproduce this, use the example pdf in attachment and try to append
it as layer to a new Document ( see sample code ).
Thanks in advance
best regards
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]