20.01.2013 Views

ReportLab Graphics and SVG Integratation

ReportLab Graphics and SVG Integratation

ReportLab Graphics and SVG Integratation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

portLab<br />

epor ReportL<br />

portLa<br />

Output filters for RLG<br />

portLa<br />

Renderers<br />

Repor Rep<br />

Need to h<strong>and</strong>le only shapes<br />

Sample code:<br />

portL Repor<br />

from reportlab.graphics import renderPDF<br />

from reportlab.graphics import renderPS<br />

from reportlab.graphics import renderPM<br />

d = makeDrawing()<br />

renderPS.drawToFile(d, "drawing.eps")<br />

renderPDF.drawToFile(d, "drawing.pdf")<br />

renderPM.drawToFile(d, "drawing.jpg", "JPG")

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!