olaoyesunday Posted January 27, 2015 Share Posted January 27, 2015 In chapter 12 page 404 sidebar Titled "Adding USER INFROMATION TO PDFS" in paragraph 2 the Author said, When the user views a pdf, we could write her emails and Names on top and bottom of each page. please, can you send me the script to implement this. or any excellent tutorial that cover it on internet I'm really interested. Like this particular e-book I'm using the name is written at the bottom of every page and when buying the e-book they will ask you to wait for say Ten minutes then they would send you a link to download the e-book in pdf and epub and so on. Link to comment Share on other sites More sharing options...
olaoyesunday Posted January 31, 2015 Author Share Posted January 31, 2015 Please, Larry I need your help as for this post. Link to comment Share on other sites More sharing options...
Larry Posted February 4, 2015 Share Posted February 4, 2015 First, you'd need to choose a PDF editing tool that works on the command line. I used to use FPDF or PDFLib. I'm not sure what options exist now. But choose one, and then see how to add a watermark to an existing PDF using that library. Then you'd have your code open the PDF template, add the watermark, and save it as a new file. Link to comment Share on other sites More sharing options...
olaoyesunday Posted February 4, 2015 Author Share Posted February 4, 2015 Thanks, I will try it. I would have try this suggestion before but when you said "it involves much more programming and server processing to write the user information to each PDF displayed on the fly" in the book and that was making me to think whether it would be a programming thing. Link to comment Share on other sites More sharing options...
olaoyesunday Posted May 1, 2015 Author Share Posted May 1, 2015 Please, I want to ask if I want to be using FPDF to water mark the pdf, is it going to be dynamic (i.e a code will be doing adding customer's name on the fly) or I will be doing it manually after I am alerted by customers order? Link to comment Share on other sites More sharing options...
Larry Posted May 1, 2015 Share Posted May 1, 2015 If you were to use FPDF or any library, it would be dynamic. You'd have your PHP code add the user's info to the PDF programmatically, outputting a new PDF, and then you would provide that PDF to just that user. Link to comment Share on other sites More sharing options...
olaoyesunday Posted May 1, 2015 Author Share Posted May 1, 2015 thanks you answer my question Link to comment Share on other sites More sharing options...
Recommended Posts