What you're asking for isn't something that's even remotely easy to do with a 
PDF file.

toPdf() will write out that page's content only.  It doesn't even contain the 
page's dictionary (a bunch of key/value pairs defining the page's size, 
rotation, annotations, resources).

The only practical way to see how big a PDF file is going to be is to generate 
it.



--Mark Storer 
  Senior Software Engineer 
  Cardiff.com

#include <disclaimer> 
typedef std::Disclaimer<Cardiff> DisCard; 



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Walter do Valle
> Sent: Thursday, September 28, 2006 11:35 AM
> To: [email protected]
> Subject: [iText-questions] Splitting PDFs in parts with same size
> 
> 
> Hello all
> 
> Is it possible to split a PDF in parts with approximately 
> same size in 
> bytes? In other words, when I'm splitting a PDF is it possible to 
> predict the size of each piece? I was looking for this 
> feature in iText 
> API and I found the PdfImportedPage.toPdf() wich retuns a 
> byte array. Is 
> it possible to use this method to try to determine the output size?
> 
> Any help is welcome
> 
> --------------------------------------------------------------
> -----------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the 
> chance to share your
> opinions on IT & business topics through brief surveys -- and 
> earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to