in reply to PDF::API2 Questions

I see lots of good advice already.

You may find PDF::API2::Simple to be a gentler introduction. I successfully used it a couple of years ago to achieve something similar to what you describe here. It's a wrapper around PDF::API2, so you still have access all the functionality of that module.

There's also a number of example (examples/*) and user contributed (contrib/*) scripts listed in the PDF::API2 MANIFEST that may prove useful.

-- Ken

Replies are listed 'Best First'.
Re^2: PDF::API2 Questions
by akwe-xavante (Acolyte) on Mar 15, 2012 at 10:16 UTC

    Thank you everybody for your input and advice.

    Already spent a good few hours working out how to get data from a HTML Webform into the CGI script then getting that info into a simple unstructured / formatted PDF document and then attaching the PDF document to an email using user info such as the persons name and email address and all's working a treat so far.

    The mail recipient is recieving the email and the attachment with the data i put into the PDF document.

    Very Happy So Far

    I've decided that i will need to get roughly a minimum of 43 bits of data into the PDF document and upto a maximum of 53 parts of info, this includes one perhaps two images / logo's. Some of the data is blocks of text. I haven't tried to get an image in yet, that's todays task

    Today's task is also to find out how to get clickable links in there, "Go to MyWebsite" "send MeAnEmail"

    Today's task is also to work out / research how to position this data in a specific location on the page

    Wish me luck!

      Some of the data is blocks of text...

      Don't know whether you've already come across PDF::TextBlock (based on PDF::API2) — it can make life easier with respect to automatic text wrapping/justification, etc.

        I'm my question is a really silly but i have my problem that i've failed to resolve even after googling it a number of times

        How on earth do you get a correct £ character into a PDF document without letter A in front of it?

        How do get all the special characters even?

        I'm my question is a really silly but i have my problem that i've failed to resolve even after googling it a number of times.

        How on earth do you get a correct £ character into a PDF document without letter A in front of it?

        How do get all the special characters even?