[reportlab-users] SVGlib howto
Andy Robinson
reportlab-users@reportlab.com
Mon, 26 Apr 2004 13:26:40 +0100
> i need explain how can i draw object "drawing" on canvas?
Drawing objects are the core of reportlab/graphics and this
no longer concerns SVG. Possible ways to use them are...
Draw on a canvas:
from reportlab.graphics import renderPDF
renderPDF.draw(myDrawing, myCanvas, x, y)
Include in a story in Platypus:
story.append(myDrawing)
Save to a standalone PDF file:
renderPDF.drawToFile(myDrawing, filename)
or call
myDrawing.save(...)
See the docstring for reportlab/graphics/shapes.py, class Drawing, method
save
for help on the many args to the last one.
HTH,
Andy