Integrating dompdf |
I want to try using dompdf for generating PDFs. It's simpler than TCPDF and wkhtmltopdf so a good choice for me if it works good enough.
I downloaded it to app/ThirdParty/ and in Autoload.php I added it to $psr4: PHP Code: $psr4 = [ Trying to use it: PHP Code: $dompdf = new \Dompdf\Dompdf(); results in error though: Code: Class 'Dompdf\Cpdf' not found It seems that dompdf has its own Autoloader.php which has some magic code for handling Dompdf\Cpdf: https://github.com/dompdf/dompdf/blob/ma...loader.php but it doesn't work with CodeIgniter 4. Any hint how to fix that? I don't like using PHP Code: require_once APPPATH . 'ThirdParty' . DIRECTORY_SEPARATOR . 'dompdf' . DIRECTORY_SEPARATOR . 'autoload.inc.php'; |
Messages In This Thread |
Integrating dompdf - by rmilecki - 05-03-2020, 03:03 AM
RE: Integrating dompdf - by jreklund - 05-03-2020, 03:42 AM
RE: Integrating dompdf - by owino - 04-17-2021, 11:53 PM
RE: Integrating dompdf - by abatrans - 04-18-2021, 02:14 PM
RE: Integrating dompdf - by syed rafi - 11-07-2023, 09:21 AM
RE: Integrating dompdf - by kenjis - 12-01-2023, 02:30 PM
|