The code snippet looks good(to me), but you indicate that the real code is in "several other loops". Is it possible you are calling $pdf_s->end on a file that already had $pdf_s->end called on it?
Is it possible that a particular pdf is causing the problem, have you kept track of the file names, and output the name of the current file when it crashes?
In reply to Re: PDF::API2, $pdf->end
by johnny_carlos
in thread PDF::API2, $pdf->end
by Tharg
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |