I trying to add DOM PDF library to my codeigniter application
1.Download dompdf and copy the dompdf folder to libraries folder.
2.Create file
Starting with v0.7.0 Dompdf uses namespaces. You probably need to add a use statement prior to referencing the class. Or reference it using the full namespace path.
Try:
require_once(dirname(__FILE__) . '/dompdf/autoload.inc.php');
use Dompdf\Dompdf;
class Pdf extends Dompdf
{
...
}
Usage is available in the readme or on the wiki usage page.