I've searched here and CPAN for an answer, but as yet I have no solution. Thus I ask for your wisdom, fellow monks.
I'm a designer who has layouts of business cards for many businesses. We get more and more orders for the same cards, just with new information.
I'd like to be able to create a PDF file of a business card but instead of people's details it will contain variables.
What happens next is that I run my yet-to-be-written perl program. It opens the given PDF file and finds all the variables. (They might look like '#firstname#'). The mythical program will then ask me for a firstname.
Once I enter the apropriate information, the script will then output a new PDF with the variables replaced with the data.
This has to be possible, I'm just not sure where to start. I've looked at the various PDF modules but they seem to be too low-level, or just for reading, or just for creating.
If anyone has any experience or suggestions for manipulating PDF files let me know.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.