in reply to using perl to build documents off of pdf templates

I tried to do something similar and had a difficult time too. I found that Text::PDF comes with a tool called pdfstamp. This tool allows placing text anywhere "on" a PDF document in a choice of fonts. It is a perl script and it can easily be incorporated into other scripts. I'd use this to put the numbers on the tix. Then you wouldn't have to modify the template. The only "trick" is to figure out where on the page the numbers go, but that is not too tricky: I put footers on my pages on the third try...

HTH, --traveler

  • Comment on Re: using perl to build documents off of pdf templates

Replies are listed 'Best First'.
Re: Re: using perl to build documents off of pdf templates
by nmerriweather (Friar) on Jul 31, 2002 at 17:45 UTC
    ok

    i ended up sticking w/pdf api 2

    its got a text feature that can 'stamp' like the text::pdf suggestion -- so thanks on that!

    i just used api:2, because it lets you clone pages

    its a 1meg file though - ugh - so the overhead sucks for constant use. i did something in 'bad style' -- and had the use pdf:: in a seperate file that i 'do' as needed. i'm sure i'd be hung for that -- but it works :)