[reportlab-users] CJK WORDWAP BUGS and where can i fund Example for def progressCB(typ, value):

Robin Becker robin at reportlab.com
Tue Feb 9 11:20:02 EST 2010


On 09/02/2010 15:59, lin li wrote:

> CJK WORDWAPdrop BUGS and where can i fund Example for def progressCB(typ,

> value):

>

> CJK WORDWAPdrop,

> bugs"

> if set first line indent,after line will be blank in every other lines end.

>

> guess,it's after line's length is wrong...



There is a CJK test in tests/test_multibyte_jpn.py

To see progressCB in action, change the last lines of the run function in
doctemplate.py (near line 1194) to look like

doc=SimpleDocTemplate('doctemplate.pdf')
doc.setProgressCallBack(progressCB)
doc.build(objects_to_draw,
onFirstPage=myFirstPage,onLaterPages=myLaterPages)

and then run doctemplate.py as a main script (ie python doctemplate.py)
--
Robin Becker


More information about the reportlab-users mailing list