[ https://issues.apache.org/jira/browse/PDFBOX-5899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17898308#comment-17898308 ]
Tilman Hausherr commented on PDFBOX-5899: ----------------------------------------- from the split() javadoc: {code:java} /** * This will take a document and split into several other documents. * * @param document The document to split. * * @return A list of all the split documents. These should all be saved before closing any * documents, including the source document. Any further operations should be made after * reloading them, to avoid problems due to resource sharing. For the same reason, they should * not be saved with encryption. * * @throws IOException If there is an IOError */ {code} But yes, this wasn't mentioned in the 1.8 javadoc, and nobody reads these anyway 😂 Another reason why you should update is that starting with 2.0.* the splitter takes care to keep local destinations and accessibility information. > Split result PDFs broken (1.8.x) > -------------------------------- > > Key: PDFBOX-5899 > URL: https://issues.apache.org/jira/browse/PDFBOX-5899 > Project: PDFBox > Issue Type: Bug > Components: Utilities > Affects Versions: 1.8.11, 1.8.17 > Reporter: Lars M Johansson > Priority: Major > Attachments: PDFSplit.java, part-1-err.pdf, part-1.pdf, > part-2-err.pdf, part-2.pdf, source.pdf > > > Split on the attached file produces two broken documents. Tested with > versions 1.8.11 and 1.8.17. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org