Use RandomAccessFileOrArray in your reader constructor.

2011/3/28 Sérgio Silva <sergiofbsi...@gmail.com>

> Hello,
>
> I am developing a web-service which changes the content of a PDF file
> syncronously. For each page of the PDF file I will add an image to an X,Y
> coord and a string to the footer returning it back to the client.
>
> The problem with this approach is that PDFReader will use too much memory
> for each request. For a single request with a 3.4mb PDF file with more or
> less 400 pages it takes 150mb in memory which is not feasible if I want to
> keep this syncronously without a queueing mechanism.
>
> Is there any other way of using the PDFStamper without reading the whole
> file into memory, or at least to decrease this memory usage ?
>
> Best regards,
> Sérgio Silva
>
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> 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
>
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
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