Gift Voucher System

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nzsquall
    New Member
    • Oct 2009
    • 22

    Gift Voucher System

    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
  • Oralloy
    Recognized Expert Contributor
    • Jun 2010
    • 988

    #2
    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.

    Comment

    • Nzsquall
      New Member
      • Oct 2009
      • 22

      #3
      Thanks, I will try it :).

      Comment

      • Oralloy
        Recognized Expert Contributor
        • Jun 2010
        • 988

        #4
        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!

        Comment

        • Nzsquall
          New Member
          • Oct 2009
          • 22

          #5
          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?

          Comment

          • Oralloy
            Recognized Expert Contributor
            • Jun 2010
            • 988

            #6
            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.

            Comment

            • Nzsquall
              New Member
              • Oct 2009
              • 22

              #7
              Thanks.

              I am using Adobe Acrobat Professional reader, it looks like I can locate the cornidates easily :).

              Comment

              • Oralloy
                Recognized Expert Contributor
                • Jun 2010
                • 988

                #8
                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.

                Comment

                Working...