Revision: 72663
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 12, 2017 21:57 by markt22
Initial Code
/** * @param args the command line arguments * @throws java.io.IOException */ public static void main(String[] args) throws IOException { File file = new File(""); PDDocument document = PDDocument.load(file); Splitter splitter = new Splitter(); List<PDDocument> Pages = splitter.split(document); Iterator<PDDocument> iterator = Pages.listIterator(); for(int i = 1;iterator.hasNext();i++) { PDDocument pd = iterator.next(); pd.save("" + i + ".pdf"); } document.close(); }
Initial URL
Initial Description
Opens an existing document and splits it into multiple documents, one for each page.
Initial Title
PDFBox: Split document into multiple pages
Initial Tags
Initial Language
Java