I am using DOMPDF to generate PDFs from HTML. I have copied all required files from github (encoding branch). But it says class DOMPDF not error as below.
link for dompdf_config.inc.php in gitbub : https://github.com/dompdf/dompdf/tree/encoding
Here is my code :
require_once("APIs/dompdf-encoding/dompdf_config.inc.php");
$cart_body='<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>New Order Placed</title></head><body><p>Test Printing...</p></body></html>';
$dompdf = new DOMPDF();
$dompdf->load_html($cart_body);//body -> html content which needs to be converted as pdf..
$dompdf->render();
$dompdf->stream("sample.pdf"); //To popup pdf as download
Actual Output is :
Fatal error: Class 'DOMPDF' not found in /home/web/www/test_dompdf.php on line 30
Line 30 is $dompdf = new DOMPDF();
Note: Other Master Branch is working fine. I need this encoding branch as it solves encoding font related issues.