Op 28/03/2011 14:53, Sérgio Silva schreef: > 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 ?
Did you follow the advice given in Chapter 6? If you don't have the book, go to: http://affiliate.manning.com/idevaffiliate.php?id=223_212 You can download chapter 6 for free. ------------------------------------------------------------------------------ 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 [email protected] 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
