--- author: '' category: '' date: 2008/09/11 18:24 description: '' link: '' priority: '' slug: BB754 tags: programming, python, rst2pdf title: Using vector images in reportlab, improved type: text updated: 2008/09/11 18:24 url_type: '' --- I just committed into trunk of rst2pdf_ a nicely working SVGImage flowable for reportlabs. The code is self-contained in two files: * svgimage.py_ * uniconvsaver.py_ .. _uniconvsaver.py: http://code.google.com/p/rst2pdf/source/browse/trunk/rst2pdf/uniconvsaver.py .. _svgimage.py: http://code.google.com/p/rst2pdf/source/browse/trunk/rst2pdf/svgimage.py You can use them in your app if you want (I'd like to know, though). One of them is GPL/LGPL (it's basically copied from uniconvertor) the other is MIT-Licensed. The output is astonishing: svg.pdf_ is only 32KB and completely resolution-independent. Graphics in your PDF That look good printed and on screen! And are not huge! Yay! This will be the flagship new feature in tomorrow's rst2pdf 0.8. .. _svg.pdf: //ralsina.me/static/svg.pdf .. _rst2pdf: http://rst2pdf.googlecode.com