Hi,

Am 17.03.2015 um 16:23 schrieb Martin Schröder:
2015-03-17 14:26 GMT+01:00 Morales-Martin, Kristina <[email protected]>:
In our use of the org.apache.pdfbox.util.Splitter class to split a PDF document 
according to top level bookmarks,
we have observed that the newly created documents do not retain the existing 
Acrobat/PDF version of the original document.
(Splitter#createNewDocument()).

Can experienced users/developers direct us to samples or other resources that 
show how this can be achieved?

Hello Kristina,
can you try the attached patch to org.apache.pdfbox.multipdf.Splitter?
It should copy the PDF version of the source to the newly created documents.

Note that PDFBox always sets the version in the header to 1.4 and this
only updates the /Version entry in the Document Catalog. This should
be enough (at least it works with Adobe Reader).
Not any longer, as I've just fixed that in PDFBOX-2713 at least for the trunk 
;-)

Best
    Martin

Thanks for the report and the hint!

BR
Andreas Lehmkühler




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to