[ https://issues.apache.org/jira/browse/PDFBOX-3996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16244427#comment-16244427 ]
Gilad Denneboom commented on PDFBOX-3996: ----------------------------------------- I do, but it means I need to calculate the size of the file (in pages) each time, which shouldn't be necessary. I want to be able to specify setSplitAtPage(0) and have it figure it out by itself, so I don't need to worry about it each time. > Add option to automatically create just one file with Splitter > -------------------------------------------------------------- > > Key: PDFBOX-3996 > URL: https://issues.apache.org/jira/browse/PDFBOX-3996 > Project: PDFBox > Issue Type: Improvement > Components: Utilities > Affects Versions: 2.0.8 > Reporter: Gilad Denneboom > Priority: Minor > > When using Splitter, its default behavior is to extract each page in the > selected range as a separate PDDocument, but often one wants to extract that > range as a single document. In order to do that you currently need to use the > setSplitAtPage method and set it to the number of pages in your range, which > is a bit silly. It would be better if there was an option to do that > automatically, for example by setting the splitAtPage property to 0, or > something like that, and have it automatically calculate the number of pages > based on the startPage and endPage values. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org