|No such thing as a small change|
PDF::Create Questionsby peppiv (Curate)
|on Apr 08, 2003 at 12:30 UTC||Need Help??|
peppiv has asked for the
wisdom of the Perl Monks concerning the following question:
I just started using PDF::Create and it works very well. I do have two particular needs that I can't figure out from the documentation or anywhere else I've looked. I can create a .pdf document very easily. What I'd like to do is write over the same file.
Let me explain. Using an applicant tracking system I built (all in Perl and on our Intranet) I'd like to have the ability to print out a summary of an application for the individuals to sign so we can have it on file. Since we've got all the information stored in the DB, we shouldn't have to save a .pdf for each candidate. I'd rather create one on the fly and print it and be done with it. Then when I come to the next candidate, just overwrite the existing .pdf and print. Here's the code from the sample.pl that comes with the Module:
My only idea so far is to have Perl delete the file before it creates on (of the same name). Any ideas?
Also, I've learned how to draw lines (thanks to the example) but I can't figure out how to draw rectangles and shaded boxes. I haven't been able to find a good example to build from. The docs give the verbage but I can't seem to get anywhere. Help!
"flying blind on a rocket cycle!"