PDF - replace text in template

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
batfastad
Forum Contributor
Posts: 433
Joined: Tue Mar 30, 2004 4:24 am
Location: London, UK

PDF - replace text in template

Post by batfastad »

Hi guys

I've started playing around with FPDF but I'm not sure if I can get it to do what I'm looking for.

I have a PDF file which is a template and I'm looking for a way to output my data by replacing the contents of certain placeholders in the PDF with PHP variables.

Is this possible?

Does anyone have any examples of find / replace from existing PDF documents with PHP?

I've managed to find plenty of information on how to generate a complete PDF, but not managed to dig up anything with working with existing PDF files.

Any ideas?

Thanks

Ben
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Can I just say I love your avatar and your display name.

I've never done PDFs with PHP but here is a good place to start.
Post Reply