Evening all:

A couple of years ago I read enough LaTeX docs to be able to generate some basic output that looked reasonable.

Now I'm researching an application where I'd like to take a government form published as a pdf and combine it with the data needed to print it out, so that the final product renders as a single pdf, the government's form filled out with our data. The user should not have to figure out how to align the printer to match our print out over a preprinted form. And I need for the government folks to not balk about us not using their forms.

Please someone who know much more about the pdf spec than I do, Is this even possible? Or would I be spinning my wheels? If this is possible, what are the tools available to help me make it happen?

-- Hugh

UPDATE

bart, frodo72, Corion:

Thank you for your pointers. I've purused the docs for PDF::API2 last night and am about to delve into the PDF::Reuse perldoc next. bart put what I'm looking for better that I did above, when he says its "like using preprinted form paper in your printer."

That's what I'm looking for. Thank you. So happy someone else figured out the hard parts for me already, I hope.

-- Hugh

UPDATE #2

Well, I've been working my way through the PDF::Reuse docs, and it seems fine at creating pdf's I can read with my gui reader. But so far I haven't figured out how to hold me mouth to get the copy to print over my templates. I keep getting blank pages with the copy instead.

if( $lal && $lol ) { $life++; }

In reply to Manipulating a pdf by hesco

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.