I think we may have an XY Problem here and I have a couple of questions. You say I have about 20 forms which are Word documents. All of the forms contain the same demographic information. Why so? If they contain the same, why do you have 20? Are they somehow user specific? And are they, already fill-in forms or just plain word files?

You also so you are creating online versions of these forms. I have seen various ways to "create an online version of a form. From the "wooden table" scanned document that was converted to a pdf for printing and filling by Hand, to a sophisticated Info-Path solution. To give good advice we need to know more about you're Setup. Anyway, given you've got a standard webserver and want to use pdf I basically see two possibilities:

You create a Html-form where you query the neccessary fields from your user. Once submitted the server takes them and creates a new pdf, enriched with the users input. To create such a PDF you can use something like PDF::Template or FOP. And yes, this requires to recreate your forms but also gives you much control over the output. For example you could use different templates for different users.

The other way is to use the built-in form functions of the pdf-format. You can use CAM::PDF to read and manipulate such field values. Sadly I have no idea how to create such a file automatically.

Hope this helps.


holli, /regexed monk/

In reply to Re: Create PDF from Perl by holli
in thread Create PDF from Perl by focus310

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.