Page 1 of 1

Convert HTML to doc, text, pdf and rtf

Posted: Tue Sep 13, 2005 2:41 am
by Ruchira Trivedi
Hi

I need to convert HTML files to doc, text, pdf or rtf dynamically. I have tried using fpdf but the resulting pdf document has no formatting. I used strip_tags to convert to text but again the same formatting problem. I need something that i can integrate with my program. I have a LINUX server so can't use COM.

Posted: Tue Sep 13, 2005 9:15 am
by onion2k
It's not possible unless you write an HTML parser in PHP. Some people have tried .. I've never seen one that actually works though. HTML is really, really complicated.

Posted: Tue Sep 13, 2005 10:22 am
by facets
any chance you could push it through OpenOffice via the command line?
i know OO opens/edit html and creates doc and pdf's

just a thought..