I am interested in creating a web based script that upon clicking a download button, an existing pdf is "stamped" with the user's name (as a copyright protection scheme) at the bottom of each page of the pdf. Any sort of watermark, add-text-to-buttom-of-each-page script should work.
I have found a script written in Perl that seems to fit the bill (http://search.cpan.org/dist/Text-PDF/), but as I am unfamiliar with Perl, I do not know how to implement it with the download button. I am thinking I could call the Perl script (pdfstamp.pl) somehow in php. How do I do this? The arguments of pdfstamp (part of linked Perl module) are
I believe I have installed the Perl module correctly using CPanel (address: /perl/usr/bin/pdfstamp.pl).
If this is a bad approach, is there a way to stamp pdfs easier in php? Thanks in advance for your assistance.
I have found a script written in Perl that seems to fit the bill (http://search.cpan.org/dist/Text-PDF/), but as I am unfamiliar with Perl, I do not know how to implement it with the download button. I am thinking I could call the Perl script (pdfstamp.pl) somehow in php. How do I do this? The arguments of pdfstamp (part of linked Perl module) are
Code:
pdfstamp [-f font] [-l locx,locy] [-s size] infile string
Adds the given string to the infile .pdf file at the given location, font and
size.
-f font Font name from the standard fonts [Helvetica]
-l locx,locy Location in points from bottom left of page [0,0]
-s size Font size to print at [11]
-t ttfile TrueType font file to use (instead of -f)
If this is a bad approach, is there a way to stamp pdfs easier in php? Thanks in advance for your assistance.