pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Christian Herlitz <herl...@excosoft.se>
Subject Re: Huge pages after splitting
Date Tue, 22 Jan 2013 06:51:22 GMT
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 <andreas@lehmi.de>

> 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 herlitz@excosoft.se
www.excosoft.se

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message