I'm using DOMPDF as "Download and Install", but if it only using autoloaderrequire_once 'dompdf/src/Autoloader.php'
, I run into the error:
include (Cpdf.php): failed to open stream: No such file or directory.
To solve, I simply add the line require_once 'dompdf/lib/Cpdf.php'
, leaving my code like this:
require_once 'dompdf/lib/Cpdf.php';
require_once 'dompdf/src/Autoloader.php';
Dompdf\Autoloader::register();
use Dompdf \ Dompdf;
I would like to know if it is correct, or if this would be a not very cool way to use it, and if it is necessary to add other libs, like Font-Lib, for example. Thanks!