PHP - Rebranding PDF

Hi

In a typical Linux hosting, I want to know what is the best solution available to have a script that can re-Brand a PDF file.

The requirement is that, there is a PDF file with BLANK Place Holders OR the TOKENS %%TOKEN%%, (I can manage both). Now, the user will register and then a customized PDF will be emailed to the user. But in order to customize that, I need a solution :frowning:

Please help/guide/suggest/etc

Thanks
Zeeshan

This may help, it was something I ran across yesterday:
http://www.livedocx.com/

-Bing

Two options:

  1. Build a PDF from an HTML template – difificulty in finding a reliable conversion script/library tho, IMO.

  2. Use a token approach and just make sure when you save the PDF compresison and encryption are turned off and it should work.

Cheers,
Alex

Thank you guys for suggesting the solutions.

@PCSpectra
You said 2 options. Your option no 1 is what I am already thinking of. But I want some explanation for option no. 2. Can you please tell me about this ? Do you mean that if there is a NOT ENCRYPTED version if the pdf available, then i can replace the tokes with the values ?