_write(drawing,
output_file,
format,
dpi=72)
| source code
|
Helper function to standize output to files (PRIVATE).
Writes the provided drawing out to a file in a prescribed format.
drawing - suitable ReportLab drawing object.
output_file - a handle to write to, or a filename to write to.
format - String indicating output format, one of PS, PDF, SVG,
or provided the ReportLab renderPM module is installed,
one of the bitmap formats JPG, BMP, GIF, PNG, TIFF or TIFF.
The format can be given in any case.
dpi - Resolution (dots per inch) for bitmap formats.
No return value.
|