python - Embed .SVG files into PDF using reportlab -


i have written script in python produces matplotlib graphs , puts them pdf report using reportlab.

i having difficulty embedding svg image files pdf file. i've had no trouble using png images want use svg format produces better quality images in pdf report.

this error message getting:

ioerror: cannot identify image file 

does have suggestions or have overcome issue before?

you need make sure importing pil (python imaging library) in code reportlab can use handle image types svg. otherwise can support few basic image formats.

that said, recall having trouble, when using pil, vector graphics. don't know if tried svg remember having lot of trouble eps.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -