PDFSplit
This application will take an existing PDF document and split it into a number of other documents
usage: java -jar pdfbox-app-x.y.z.jar PDFSplit [OPTIONS] <PDF file>
| Command Line Parameter |
Type |
Default Value |
Description |
| -password <password> |
string |
none |
The password to the PDF document. |
| -split <integer> |
integer
|
None |
Number of pages of every splitted part of the pdf. |
| -startPage <integer> |
integer
|
None |
The page to start at. |
| -endPage <integer> |
integer
|
None |
The page to stop at. |
| -nonSeq |
boolean |
false |
Use the new non sequential parser. |
Examples:
- PDFSplit -split 2 sample_with_13_pages.pdf will split the pdf in pieces of 2 pages each except the last which will contain 1 page only.
- PDFSplit -startPage 5 sample_with_13_pages.pdf will provide a pdf containing all pages of the source pdf starting at page 5
- PDFSplit -startPage 5 -endPage 10 sample_with_13_pages.pdf will provide a pdf containing all pages from 5 to 10 of the source pdf
- PDFSplit -split 2 -startPage 5 -endPage 10 sample_with_13_pages.pdf will provide 3 pdfs containing all pages from 5 to 10 of the source pdf 2 pages each