user975343
user975343

Reputation:

FPDF Encoding Issues

I've been using FPDF utility in order to export html output to pdf reoprt. I'm successfully sending text and displaying it in the pdf file, but the problem comes up while trying to display real html structures- like tables and etc.In this case it seems like the encoding is not working well.

I've been trying to come up with a solution, but haven't had a success so far. Any suggestions?

Thanks in advance

Upvotes: 0

Views: 957

Answers (1)

chiborg
chiborg

Reputation: 28134

If you want to convert HTML to PDF in PHP you should have a look at MPDF. With FPDF you have to parse the HTML yourself, extracting paragraphs, formatting, images and tables and then need to call the FDPF functions for creating the elements in the PDF - you're basically rewriting MPDF functionality.

Upvotes: 1

Related Questions