[reportlab-users] How to import vector based graphics into pdf

Roberto Alsina ralsina at netmanagers.com.ar
Thu Aug 9 11:00:34 EDT 2012


On 08/09/2012 11:54 AM, Laszlo KREKACS wrote:

> Hi,

>

> I would like to import the company logo in the final .pdf file.

> I can create the company logo in whatever format (.pdf, .ps, .svg),

> but I think embedding

> .pdf would be the best option.

>

> Is there a way to import vector graphics? I know do it as importing .png, but

> it is not the best way doing it. (high res .png boost the .pdf size,

> if I want to watermark pages,

> the extra size measures in MBs).

>

>

> Anyone else with such a problem?


Patrick Maupin's pdfrw is great for this:

http://code.google.com/p/pdfrw

He even has a watermarking-with-reportlab example:

http://code.google.com/p/pdfrw/source/browse/trunk/examples/rl1/platypus_pdf_template.py



More information about the reportlab-users mailing list