title: Dynamically insert content into pdf files with php
body: <p>I have an ebook in word that I convert to PDF before distributing to my clients. I'd like to dynamically insert their email address into all links in the ebook to allow them access to the members-only content on my site, and I'd like to do this on the fly, as part of the book download process.</p>
  
  <p>I've briefly looked at <a href="http://us.php.net/pdf" rel="nofollow noreferrer">http://us.php.net/pdf</a> and FPDF, but I was wondering what specific technique I'd use to insert this data.</p>
  
  <p>I was thinking I'd insert an email token string where I want the email address to go, and then use some function to update those tokens in the PDF document.</p>
  
  <p>Can anyone point me in the right direction? I have php experience, but not with editing / generating pdf documents from php.</p>
  
  <p>EDIT: Yes, this commercial script <a href="http://www.setasign.de/products/pdf-php-solutions/setapdf-linkreplacer/" rel="nofollow noreferrer">http://www.setasign.de/products/pdf-php-solutions/setapdf-linkreplacer/</a> does exactly what I needed.</p>