PDF를 끝까지 분할
Contents
[
Hide
]
PDF를 분할하여 종료
Java 샘플은 2페이지부터 모든 페이지를 추출합니다.
단계
PdfFileEditor인스턴스를 생성하세요.- 소스 파일, 시작 페이지 번호, 출력 파일을 포함하여
splitToEnd을 호출하세요. - 결과 PDF 문서를 저장하세요.
public static void splitPdfToEnd(Path inputFile, Path outputFile) {
PdfFileEditor pdfFileEditor = new PdfFileEditor();
pdfFileEditor.splitToEnd(inputFile.toString(), 2, outputFile.toString());
}