[reportlab-users] Creating Large PDF Files

Engel, Gregory reportlab-users@reportlab.com
Wed, 5 Mar 2003 10:13:29 -0700


This is a multi-part message in MIME format.

------_=_NextPart_001_01C2E33A.8A98B554
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

By large, I mean 500+ MB.  (Managers ask for the funniest things.)  Is =
there a way to save an incomplete PDF file to disk, and thus clear the =
memory, while processing large amounts of raw data?  I've hit a memory =
barrier where ReportLab quits processing the data and Python throws and =
"exceptions.MemoryError".  It seems that ReportLab attempts to keep the =
incomplete PDF in memory until the pdfgen.save method is called.

Thank you,

Gregory Engel
Senior Software Engineer

=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF
My other computer is spongy gray matter.


------_=_NextPart_001_01C2E33A.8A98B554
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6249.1">
<TITLE>Creating Large PDF Files</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">By large, I mean 500+ MB.&nbsp; =
(Managers ask for the funniest things.)&nbsp; Is there a way to save an =
incomplete PDF file to disk, and thus clear the memory, while processing =
large amounts of raw data?&nbsp; I've hit a memory barrier where =
ReportLab quits processing the data and Python throws and =
&quot;exceptions.MemoryError&quot;.&nbsp; It seems that ReportLab =
attempts to keep the incomplete PDF in memory until the pdfgen.save =
method is called.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thank you,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Gregory Engel</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Senior Software Engineer</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=
</FONT>

<BR><I><FONT SIZE=3D2 FACE=3D"Arial">My other computer is spongy gray =
matter.</FONT></I>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2E33A.8A98B554--