By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,834 Members | 2,240 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,834 IT Pros & Developers. It's quick & easy.

Gift Voucher System

P: 22
Hi code masters,

I am thinking of doing a gift voucher system where it can print a nice pdf vouchre dynamically.

I have a pdf template for gift voucher. The problem is that, what module can I use to print those scalar values (customer details) onto the pdf and generate a nice gift voucher? How do I locate the area to put the corresponding details?

Thanks in advanced

Eric
Aug 2 '10 #1

✓ answered by Oralloy

I've used the PDF.pm with success in the past.

It has a couple bugs, depending on what's in the file, but overally, the module is pretty good.

Share this Question
Share on Google+
7 Replies


Oralloy
Expert 100+
P: 983
I've used the PDF.pm with success in the past.

It has a couple bugs, depending on what's in the file, but overally, the module is pretty good.
Aug 3 '10 #2

P: 22
Thanks, I will try it :).
Aug 3 '10 #3

Oralloy
Expert 100+
P: 983
Good luck.

Do you understand how PDF files are structured?

If not, you should probably read through the file structure documentation from Adobe.

Good Luck!
Aug 3 '10 #4

P: 22
I don't, I am wondering how do I locate the position where to print on the pfd.

Is it using some kind of coordinates?
Aug 3 '10 #5

Oralloy
Expert 100+
P: 983
Yeah, that's basically it.

Each page in an Acrobat (PDF) document has its own coordinate system, so you have to decode that and write your information on top of the page using the same system.

If your page is simple, you might want to try one of the other creat-from-scratch packages.

But, your best bet is to read the Adobe file specification document. It's stinking long, and most of it won't apply to you, but it'll do the job.
Aug 3 '10 #6

P: 22
Thanks.

I am using Adobe Acrobat Professional reader, it looks like I can locate the cornidates easily :).
Aug 3 '10 #7

Oralloy
Expert 100+
P: 983
So just build your objects and glue them on the end of the file. Just be sure append an extended look-up table.

Again, the smart move is to read that document.
Aug 3 '10 #8

Post your reply

Sign in to post your reply or Sign up for a free account.