> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Massimiliano Ziccardi
> Sent: Thursday, June 19, 2008 11:51 AM
> To: [email protected]
> Subject: [iText-questions] Problem parsing huge PDF files
> 
> Hi all.
> 
> I have a bug problem. I need to parse very big files (>800 
> MB) with lots of pages (> 400.000 pages).
> 
> When I open it with Adobe Acrobat Reader, I've no problem: 
> the file is opened in less than 1 second, and
> the reader is able to show me the page count in a while.
> 
> If I try to instantiate a PDF reader on the file, I get 
> OutOfMemory exception: to rise the JVM memory is not
> an option, since I can't know the size of my PDFs.
>

Big PDFs will always require more memory, no miracles here.
 
> Is there a way I can parse the PDF without loading so much 
> data in memory (as, I think, Adobe do)?
> 

PdfReader(RandomAccessFileOrArray,byte[])

Paulo


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to