|Just another Perl shrine|
Yet Another SVG to PDF Questionby Anonymous Monk
|on Jan 29, 2012 at 21:12 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I've been working for a long time on a web application that needs to generate PDF invoice reports from a database. The look of the reports is important, and they also include photos. Additionally, the reports are several pages long. The process that I've been using is to make an SVG into a template that can be substituted with HTML::Template, then have the users--who are all using Macs at this point--create the PDF by printing to PDF from the browser. This system works okay, but it isn't ideal for a few reasons:
1. SVGs don't support text wrap
2. I'd prefer to generate a PDF to deliver to the browser, rather than counting on the browser to handle the PDF generation
3. The command line tools I've found to generate PDFs from SVGs (rsvg, batik, etc) don't seem to use the font specified in the SVG, even if I include the SVG font in the image.
So, any ideas to clean up this workflow and generate multi page PDFs from SVGs?
Thanks in advance,