In your PHP code, include the dompdf/autoload.inc.php file: require_once '/home/lngspvtltd/public_html/dompdf-0.7.0/autoload.inc.php'; You can now use dompdf to generate PDFs from HTML code. Here's an example: use Dompdf\Dompdf; // instantiate and use the dompdf class $dompdf = new Dompdf(); $dompdf->loadHtml('

Hello, world!

'); $dompdf->render(); $dompdf->stream(); NOTE: dompdf v0.7.0 is an older version and may not have all the features and bug fixes of the latest version. It is recommended to upgrade to a newer version of PHP and dompdf if possible.