Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
olaoyesunday

Chapter 12 Page 404 Adding User's Information To Pdf

Recommended Posts

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.

 

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...