I looked the code and found a fix in toc.py.

In renderToc, the instantiation of SimpleDocTemplate requires that
pagesize be passed as an additional parameter.
Thus:

   doc = SimpleDocTemplate(tocpath)

Needs to be changed to:

   from reportlab.lib.pagesizes import A5
   . . .
   doc = SimpleDocTemplate(tocpath, pagesize = A5)


Not being a python programmer I hacked it in.  I would like to use the
pdfstyles.py definition.  Maybe one of you can show the "right" way to
do it?

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to