Skip to main content

Ralsina.Me — Roberto Alsina's website

Using vector images in reportlab, improved

I just com­mit­ted in­to trunk of rst2pdf a nice­ly work­ing SVGIm­age flow­able for re­port­lab­s.

The code is self­-­con­tained in two files:

You can use them in your app if you want (I'd like to know, though). One of them is GPL/L­GPL (it's ba­si­cal­ly copied from uni­con­ver­tor) the oth­er is MIT-Li­censed.

The out­put is as­ton­ish­ing: svg.pdf is on­ly 32KB and com­plete­ly res­o­lu­tion-in­de­pen­den­t. Graph­ics in your PDF That look good print­ed and on screen! And are not huge! Yay!

This will be the flag­ship new fea­ture in to­mor­row's rst2pdf 0.8.

Comments

Comments powered by Disqus