20.01.2013 Views

ReportLab Graphics and SVG Integratation

ReportLab Graphics and SVG Integratation

ReportLab Graphics and SVG Integratation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

portLab<br />

epor ReportL<br />

portLa<br />

import svglib<br />

portLa<br />

Wrapper code for PythonPoint<br />

Repor Rep<br />

class SvgDrawing:<br />

"<strong>SVG</strong> Wrapper for PythonPoint."<br />

portL Repor<br />

def __init__(self, x,y,width,height,path):<br />

assert (width,height) != (None,None)<br />

self.x = x<br />

self.y = y<br />

self.width = width<br />

self.height = height<br />

self.drawing = svglib.svg2rlg(path)

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

Saved successfully!

Ooh no, something went wrong!