Hoping for a little Advice before i start!

To start i'm not a programmer at all really, however i do manage and i'm in need of a little initial guidance on a new and challenging project. I have a html webform to get data which is sent to a perl script for processing, a few sums, a little formatting then the script prints a html page to the browser for printing. At the same time the same data is sent by email as a html email.

I want to improve on this and challenge myself a little further and instead i hope to use the same html webform and its data to create a nice little pdf document and send it as an attachment by email and either open a new tab as a pdf document for saving and or for printing or if that's pushing my luck then simply print html data to the browser as a webpage for printing.

I have a silly little script already proving that on my Linux box i can create a PDF document and send it as an atachment in an email

The document will be a one page invoice basically.

Questions:

How many options are there regarding the creation of the PDF document?

What's the best way to go about this?

Is it possible to create a nice little PDF Document or some other file type as a template incorporating VariableNames where required, open this document and somehow import data into those variables then SaveAs a new document ready for the next process?

Or will it be best to create each and every document from scratch every time?

Thank you in advance


In reply to PDF::API2 Questions by akwe-xavante

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.