pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Problem merging multiple PDF
Date Tue, 19 Jun 2018 16:14:36 GMT
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.


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: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message