Hi all,
I'm trying to extract an attachment from a pdf file (previously created with
itext). I used the code of extractDocLevelAttachments() method as suggested
at page http://itextpdf.com/examples/iia.php?id=290.
It works for "normal sized" attachments. When I try to extract "large sized"
files (e.g. more than 200 MB) i receive a java.lang.OutOfMemoryError.
I think the trouble is on method PdfReader.getStreamBytes(..) which returns
a byte[]. I know i can increase JVM size but i would like to know if there
is an alternative to receive something like an InputStream with itext api..
I'm using itext 5.0.4.
Thanks in advance.

Stefano
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to