welcome to my another php tutorial video.
this time, i will show you how to make a PDF in php.
but this time, instead of using FPDF Library, i am using a DOMPDF library.
so what’s the difference here.
FPDF, is generating PDF file by directly manipulating the pdf document structure, so in order to place something in the pdf, we do it programmatically.
While in DOMPDF, well, instead of generating, we are more like converting html layout into pdf. So to use it, we need to make an html structure, then turn it into pdf using this library.
before we begin, please keep in mind that DOMPDF is not tolerant to poorly formed html.
Dompdf library can be downloaded here:
The documentation can be found here: