Split PDF to End
Contents
[
Hide
]
Split PDF to end
The Java sample extracts all pages starting from page 2.
Steps
- Create a
PdfFileEditorinstance. - Call
splitToEndwith the source file, starting page number, and output file. - Save the resulting PDF document.
public static void splitPdfToEnd(Path inputFile, Path outputFile) {
PdfFileEditor pdfFileEditor = new PdfFileEditor();
pdfFileEditor.splitToEnd(inputFile.toString(), 2, outputFile.toString());
}