this is how i downloaded it
- I moved the dompdf-0.5.1 folder to the
/sites/all/libraries folder - I edited dompdf_config.inc.php, replacing the
DOMPDF_autoload() function with:
code:
function DOMPDF_autoload($class) { if (mb_strtolower($class)== 'firephp'){ return; } $filename = mb_strtolower($class) . ".cls.php"; require_once(DOMPDF_INC_DIR . "/$filename"); } if ( !function_exists("__autoload") ) { function __autoload($class) { DOMPDF_autoload($class); } }
- now you can use it the same way in any other module
code:
require_once(realpath('.')."/sites/all/libraries/dompdf-0.5.1/dompdf_config.inc.php"); spl_autoload_register('DOMPDF_autoload'); $obj = new DOMPDF();
This worked, and I was able to use the DOMPDF object / class.
source share