Skip to content Skip to sidebar Skip to footer

Fpdf Text With Html Tags

I'm using FPDF to create an A4 sized PDF, I can add text/images and this is working fine. I have a dynamically generated string which contains some HTML tags (BR etc) and was wond

Solution 1:

Yes, it is an Add-On:

Write HTML

Author: Clément Lavoillotte License: FPDF

This is an enhancement of the WriteHTML() method from tutorial 6. Supported tags are: ...

Please see Write HTML FPDF Script #42 which I think is the latest version, but feel free to browse the FPDF scripts/Add-Ons.

Solution 2:

I've solved it anyway.

Because I'm also using FPDI, what I did was extract the contents of the class in http://www.fpdf.org/en/script/script42.php and put it inside the FPDI.php file.

Post a Comment for "Fpdf Text With Html Tags"