> -----Original Message-----
> From: Jason Moors [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 09, 2005 6:32 PM
> To: Paulo Soares
> Subject: RE: [iText-questions] Replace buffering of pdf 
> content in memory
> 
> I've used PdfTemplates so that I can position information in 
> containers, to simplify the layout. 
>  
> I'll look at changing this, but is it possible to free a 
> template once it's been added to the directcontent?
>

It can't but it should. I'll take a look into it.
  
> Thanks for the help
>  
> Jason.
>  
> -----Original Message----- 
> From: [EMAIL PROTECTED] on behalf 
> of Paulo Soares 
> Sent: Fri 09/09/2005 18:11 
> To: Jason Moors; [email protected] 
> Cc: 
> Subject: RE: [iText-questions] Replace buffering of pdf 
> content in memory
> 
> 
> 
>       If you are drawing to a PdfTemplate it will stay in memory until
>       closing. Draw it directly to the PdfWriter.getDirectContent().
>       
>       > -----Original Message-----
>       > From: [EMAIL PROTECTED]
>       > [mailto:[EMAIL PROTECTED] On
>       > Behalf Of Jason Moors
>       > Sent: Friday, September 09, 2005 6:00 PM
>       > To: [email protected]
>       > Subject: [iText-questions] Replace buffering of pdf 
> content in memory
>       >
>       > Hi,
>       > 
>       > I am generating a report which includes a complex diagram
>       > drawn using PdfGraphics2D and a number of JFreeCharts, the
>       > information is then streamed back to the web browser.
>       > 
>       > The problem I have encountered is that there could be a
>       > maximum of 500 pages, which causes an OutOfMemoryException.
>       > 
>       > I've used JProfiler and it seems that the application
>       > requires over 600MB of heap memory.
>       > 
>       > I'm looking for a way where I could serialize the page date
>       > and then put the information straight onto the outputstream
>       > one page at a time so that the whole document doesn't have to
>       > be stored in memory at the same time. (So I don't have large
>       > a byte array in memory)
>       > 
>       > I have been looking at the PdfWriter class, can I modify so
>       > that individual pages are stored to disk and then loaded and
>       > streamed on when the document is closed?
>       > 
>       > Thanks
>       > 
>       > Jason.
>       >
>       >
>       >
>       >
>       >
>       >
>       > The content of this email is confidential and for the
>       > addressee only. If you are not the addressee of this
>       > email (or responsible for the delivery of this message
>       > to such person) you may not copy, forward, disclose
>       > or otherwise use it or any part of it in any form
>       > whatsoever. If you have received this email in error
>       > please email the sender by replying to this message
>       > and delete this message thereafter.
>       >
>       > Opinions, conclusions and other information in this
>       > message that do not relate to the official business
>       > of our Company shall be understood as neither
>       > given nor endorsed by it.
>       >
>       >      
>       >
>       
>       
>       -------------------------------------------------------
>       SF.Net email is Sponsored by the Better Software 
> Conference & EXPO
>       September 19-22, 2005 * San Francisco, CA * Development 
> Lifecycle Practices
>       Agile & Plan-Driven Development * Managing Projects & 
> Teams * Testing & QA
>       Security * Process Improvement & Measurement * 
> http://www.sqe.com/bsce5sf
>       _______________________________________________
>       iText-questions mailing list
>       [email protected]
>       https://lists.sourceforge.net/lists/listinfo/itext-questions
>       
> 
> 
> 
> 
> 
> 
> 
> The content of this email is confidential and for the
> addressee only. If you are not the addressee of this
> email (or responsible for the delivery of this message
> to such person) you may not copy, forward, disclose
> or otherwise use it or any part of it in any form
> whatsoever. If you have received this email in error
> please email the sender by replying to this message
> and delete this message thereafter. 
> 
> Opinions, conclusions and other information in this
> message that do not relate to the official business
> of our Company shall be understood as neither
> given nor endorsed by it.
> 
>       
> 


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to