Possible Duplicate:
Convert HTML + CSS to PDF with PHP?
how to convert a string that containing html tags into a pdf or doc file where html tags will convert into corresponding formating for example br tag to /n or newline bold tag to bold text in doc or pdf file?