[ https://issues.apache.org/jira/browse/PDFBOX-3996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16244304#comment-16244304 ]
Tilman Hausherr commented on PDFBOX-3996: ----------------------------------------- I use the command line utility with {{-startPage 33 -endPage 50}} that gets me one file. I see in the source code that it calls {{setSplitAtPage()}} itself. Why don't you just copy that source code and call {{splitter.setSplitAtPage(endPage)}} ? > 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