Re: memory requirements

"paolo_asioli" <[email protected]> Mon, 24 Nov 2008 14:44:34 -0000
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <[email protected]>
Very strange... I've found old posts from Fredo saying that memory
usage could be reduced by setting the file name in the object creation
and using finishobjects after each page to relese the objects used in
that page.

The objects get written to the file but no memory apparently gets
released.

Cheers,
     Paolo


--- In [email protected], "Mr. Shawn H. Corey"
<shawnhcorey@...> wrote:
>
> On Mon, 2008-11-24 at 12:06 +0000, paolo_asioli wrote:
> > Hello all!
> > 
> > I've tried using finishobjects and the -file object creation to
> > minimize memory requirements but I only get the file to be written to
> > disk as it's created instead of all together at the end.
> > 
> > But I see the memory usage increasing until I destroy the $pdf object.
> > 
> > Any idea why ?
> 
> That's because you keep adding stuff to $pdf.  Because of the structure
> of PDF, you can't create a file for it until you know all the parts.
> The file can only be created at the end.
> 
> 
> -- 
> Just my 0.00000002 million dollars worth,
>   Shawn
> 
> The map is not the territory,
> the dossier is not the person,
> the model is not reality,
> and the universe is indifferent to your beliefs.
>