Hi,

But I still have the same problem with a non portfolio PDF.

http://sprend.com/download.**htm?C=**54b80e073332491e92b95ec91bf090**12<http://sprend.com/download.htm?C=54b80e073332491e92b95ec91bf09012>
Size: 24,3 MB

Some pages are bigger than 21 400 kB but when saved with Acrobat they are <
100 kB.

/jc

2013/1/21 Andreas Lehmkuehler <[email protected]>

> 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
>



-- 
Excosoft • Jan Christian Herlitz
Senior Documentation Expert
Kammakargatan 7, SE-111 40 STOCKHOLM
Phone & Mobile +46 (0) 70 716 88 09
Email [email protected]
www.excosoft.se

Reply via email to