[reportlab-users] Broken PDFs with multiBuild and file objects

Robin Becker reportlab-users@reportlab.com
Thu, 2 Jan 2003 10:35:12 +0000


In article <174400000.1041463216@galadriel.hohoff.bogus>, Holger
Hoffmann <hohoff@rz.uni-potsdam.de> writes
>Hi,
>
>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
>demostrates this.
>
>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.
>
>... Holger
>
>--
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.
-- 
Robin Becker