Reputation: 627
I am extracting Rich Text data from MySQL and want to create a pdf from it. I am able to create a script where I have say only bold, italics, underlined one. It gets a much harder when the data has span tags with text color and background-colors, nesting of lists etc. Is there a way where pdf can be generated by just giving html page as an input? As the data contains tags.
Upvotes: 0
Views: 1994
Reputation: 5366
creating PDF using php or any other language doesn't concern with your text format, its upto you will format your text and write on PDF.see THIS
Upvotes: 2
Reputation: 1763
Use MPDF to create your pdf page feom html
http://www.mpdf1.com/mpdf/index.php
Upvotes: 1