[reportlab-users] Bug in Paragraph class with tags when switching frames

Dinu Gherman gherman at darwin.in-berlin.de
Fri Nov 16 06:38:56 EST 2007


Robin Becker:


> looks like there's a dictionary with an empty key. Can you just

> wrap the call at line 621 thusly.

>

> try:

> L = [(format(PDFName(k),document)+" "+format(dict[k],document))

> for k in keys]

> except:

> print ['%r=%r' %(k,v) for k,v in dict.items()]

> raise

>

> that may give some clue as to what kind of dictionary it is?


That prints the following:

["'Subtype'='/Link'",
"'Rect'=<reportlab.pdfbase.pdfdoc.PDFArray instance at 0x1620490>",
"'Dest'=<reportlab.pdfbase.pdfdoc.Destination instance at 0x1506b20>",
"'Type'='/Annot'",
"'Border'=<reportlab.pdfbase.pdfdoc.PDFArray instance at 0x1506a80>",
"'Contents'=<reportlab.pdfbase.pdfdoc.PDFString instance at
0x1623a80>"]

Dinu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20071116/a5c42aa2/attachment-0001.htm>


More information about the reportlab-users mailing list