3

I use FPDI and want to insert in pdf file some html code but the method WriteHTML() is only on FPDF and not in FPDI. How can I do it?

Rinos
  • 636
  • 2
  • 10
  • 25
  • 2
    Write the HTML with FDPF and import the generated PDF into FPDI?! – hakre Jun 15 '17 at 07:33
  • Is not that a bit too long? Instead of doing that, I know that it's best to split the html into pieces and set the contents using the setfont settext. I was hoping for something more immediate :( – Rinos Jun 15 '17 at 10:20

1 Answers1

2

I solved by entering this script http://www.fpdf.org/en/script/script42.php into fpdf_tpl.php file and I have WriteHTML() method into my FPDI class

Rinos
  • 636
  • 2
  • 10
  • 25