HTML formatting for PDF Template

Hello Friends,

I am trying to customize PDF which is defined in PDF template module similar to the Quotes, Invoice. Below functionality has been completed:

  1. Add PDF template for my custom module
  2. PDF is generating from my custom module
  3. I want to print all products of my custom module on PDF
    4… As of now only one product is printing on PDF.

Problem Statement: I have customize generatePDF.php file (upgrade safe) where I have created html in which all products are listed. But this html is printing on PDF as a plain text.

Can anyone guide me how I can put formatted html on PDF? Please please help… :frowning:

Thanks in advance !!