Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Simple Perl PDF Creation

by chrestomanci (Priest)
on Dec 13, 2011 at 21:34 UTC ( [id://943425]=note: print w/replies, xml ) Need Help??


in reply to Simple Perl PDF Creation

I posted a question about pdf generation from templates about a year ago, it might be worth reading the answers I got.

My eventual solution was to to go via SVG. I prepared an SVG template by drawing it in a graphics program and then opening the SVG file in an editor and replacing elements with template tags. I then filled in the template with perl Text::Template (I dare say other templating systems such as Catalyst's favourite Template::Toolkit would work as well). Once I had an SVG file I fed it through svg2pdf (that comes with Inkscape) to convert to PDF.

Bear in mind that my project involved a lot of vector & bitmaped graphics, and not a lot of text. If you need to put a lot of text into your PDF files then my solution may not work as well as you are likely to have to do things like line breaks yourself.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://943425]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-26 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found