[reportlab-users] outputfile file problem
Robin Becker
robin at reportlab.com
Fri Dec 23 03:52:12 EST 2005
Tulga wrote:
.......
>
> Can I use any other function? I used outputfile that
>
> doc = SimpleDocTemplate(outputfile('/usr/lib/cgi-bin/test.pdf'),
> pagesize=landscape(A4), leftMargin=1*cm, rightMargin=1*cm,
> topMargin=1.5*cm, bottomMargin=1*cm,showBoundary=0)
>
> Can I replace other function?
>
> Tnx
You don't need outputfile for that. Use an absolute or relative filename
directly. All outputfile does is make relative paths have a specific
absoulte path; we only use it in the tests.
eg
SimpleDocTemplate('/tmp/test.pdf',.......
--
Robin Becker
More information about the reportlab-users
mailing list