Hi,

Am 21.01.2013 19:33, schrieb Jan Christian Herlitz:
Hi,

I don't do anything special - the Splitter just gives me all the pages.

List<PDDocument> documents = new Splitter().split(document);
for (int ix = 0; ix < documents.size(); ix++) {
    final File onePage = File.createTempFile("page", ".pdf");
    final PDDocument doc = documents.get(ix);
    final FileOutputStream output = new FileOutputStream(onePage);
    final COSWriter writer = new COSWriter(output);
    writer.write(doc);
    output.close();
    writer.close();
    doc.close();
}

Is it better than intended?!
Yes it is. It doesn't work for me. I just got two pages.


/jc



BR
Andreas Lehmkühler

Reply via email to