[reportlab-users] Broken PDFs with multiBuild and file objects
Thu, 2 Jan 2003 10:35:12 +0000
In article <firstname.lastname@example.org>, Holger
Hoffmann <email@example.com> writes
>BaseDocTemplate.multiBuild with a file object as parameter
>seems to produce a broken pdf document. If I use a filename
>as parameter all goes well. With a file object as parameter
>a broken pdf is generated. I've attached a script which
>The problem is that BaseDocTemplate.multiBuild makes multiple
>passes and generates one complete pdf document in each pass. If
>I use a filename as parameter to multiBuild, PDFDocument.SaveToFile
>opens and closes the file in every pass. If I use a file
>object as parameter, I get 2 pdf documents in one file.
which version are you using? I have actually attempted to fix this
problem in the past so probably someone has attempted to 'fix' the
rather ugly hack that was needed.