Skip to main content
Inspiring
September 20, 2007
Question

save PHP page as a word document

  • September 20, 2007
  • 1 reply
  • 385 views
I have created a printer friendly version of a PHP page which contains only a small logo and basic text. I'd like to allow users to save the page, which loads with dynamic MySQL content , as a word document.

Ideally, they would just click on a button or link to save the document as a word doc or possibly an rtf.

Is there a way to do this in PHP?
This topic has been closed for replies.

1 reply

Participating Frequently
October 1, 2007
Hi,
i dont think you can do it with native php. I saw somewhere php rtf writer class for php but I dont know about dependencies about it. Other solution is to use some PDF writer class and to output page to PDF file. Its more friendly than DOC file, but its just my oppinion though. So, i guess your best shot would be Google for rtf/pdf writer class that will suit your needs.