Brandon - Free Palestine
Brandon - Free Palestine

Reputation: 16656

PHP: Any way to populate Word Docs yet?

Last time I worked with PDF generation/.DOC generation in PHP it was awful, and as far as I can tell it's still awful.

I'm wondering if anybody in the community has found a good way (That doesn't involve a paid service) for generating PDFs, or for dynamically filling in values in a Word Document. What I'd like to do now is have the ability for somebody to upload a word document and populate it was PHP

Upvotes: 1

Views: 313

Answers (2)

Kumar
Kumar

Reputation: 5147

For pdf, you can opt for fpdf or better, with some effort you can even use Apache FOP and here is a similar question on SO Create Word Document using PHP in Linux. And you can generate doc files as well. The point is you may need to run around. AFAIK, if an open source project, Open Office for example, can generate doc file, you can do that as well.

Upvotes: 1

Jorg
Jorg

Reputation: 7250

Not knowing exactly what you want to do, but this class might be of assistance. I haven't personally used this though. Might still be awefull.

Upvotes: 1

Related Questions