iText doesn't support PDFs bigger than 2G. Even before that you'll have 
problems finding a contiguous space in the virtual memory to map it. This can 
be alleviated with Document.plainRandomAccess=true.

Paulo


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Edward W. Rouse
> Sent: Thursday, August 07, 2008 6:58 PM
> To: 'Post all your questions about iText here'
> Subject: [iText-questions] Parsing extremely large pdfs
>
> We have a customer with some pretty unrealistic expectations,
> one of which gave me this error:
>
>
>
> Exception in thread "main"
> java.lang.IllegalArgumentException: Size exceeds Integer.MAX_VALUE
>         at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:707)
>         at
> com.lowagie.text.pdf.MappedRandomAccessFile.init(Unknown Source)
>         at
> com.lowagie.text.pdf.MappedRandomAccessFile.<init>(Unknown Source)
>         at
> com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(Unknown Source)
>         at
> com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(Unknown Source)
>         at com.c2s.pdf.PdfUtils.split(PdfUtils.java:169)
>         at com.c2s.main.wells.Statements.main(Statements.java:51)
>
>
>
> The size of the original compressed file is so large that it
> exceeds the 2 gig file size limit when it's being worked on.
> Is there any way to avoid this other than telling the
> customer to keep their file sizes reasonable? (Which I would
> love to do but the way ;) ).
>
>
>
> Thanks, Ed.
>
>


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.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to