Aman Chhabra
Aman Chhabra

Reputation: 627

How to create PDF through PHP where data is gathered from MySQL and it is in Rich Text Format

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

Answers (3)

KhAn SaAb
KhAn SaAb

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

Goutam Pal
Goutam Pal

Reputation: 1763

Use MPDF to create your pdf page feom html

http://www.mpdf1.com/mpdf/index.php

Upvotes: 1

nitish
nitish

Reputation: 63

you could use a third party HTML to PDF api like PDFCrowd

Upvotes: 1

Related Questions