[reportlab-users] Creating Large PDF Files

Andy Robinson reportlab-users@reportlab.com
Thu, 6 Mar 2003 07:01:52 -0000


This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C2E3AE.44CB6430
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Creating Large PDF Files
  -----Original Message-----
  From: reportlab-users-admin@reportlab.com
[mailto:reportlab-users-admin@reportlab.com]On Behalf Of Engel, Gregory
  Sent: 05 March 2003 17:13
  To: reportlab-users@reportlab.com
  Subject: [reportlab-users] Creating Large PDF Files


  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

  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
  My other computer is spongy gray matter.


------=_NextPart_000_0000_01C2E3AE.44CB6430
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Creating Large PDF Files</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  reportlab-users-admin@reportlab.com=20
  [mailto:reportlab-users-admin@reportlab.com]<B>On Behalf Of </B>Engel, =

  Gregory<BR><B>Sent:</B> 05 March 2003 17:13<BR><B>To:</B>=20
  reportlab-users@reportlab.com<BR><B>Subject:</B> [reportlab-users] =
Creating=20
  Large PDF Files<BR><BR></FONT></DIV><!-- Converted from text/rtf =
format -->
  <P><FONT face=3DArial size=3D2>By large, I mean 500+ MB.&nbsp; =
(Managers ask for=20
  the funniest things.)&nbsp; Is there a way to save an incomplete PDF =
file to=20
  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=20
  data and Python throws and "exceptions.MemoryError".&nbsp; It seems =
that=20
  ReportLab attempts to keep the incomplete PDF in memory until the =
pdfgen.save=20
  method is called.</FONT></P>
  <P><FONT face=3DArial size=3D2>Thank you,</FONT> </P>
  <P><FONT face=3DArial size=3D2>Gregory Engel</FONT> <BR><FONT =
face=3DArial=20
  size=3D2>Senior Software Engineer</FONT> </P>
  <P><FONT face=3DArial =
size=3D2>=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF</FO=
NT> <BR><I><FONT face=3DArial=20
  size=3D2>My other computer is spongy gray matter.</FONT></I>=20
</P></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0000_01C2E3AE.44CB6430--