Rectangle 27 0

Cakephp2.3.x the folder name get changed "vendor" to "Vendor". ...

Cakephp 1.3.X : In PdfComponent we are using

App::import('vendor', 'Html2PsConfig', array('file' => 'html2ps'.DS.'config.inc.php')); 
  App::import('vendor', 'Html2Ps', array('file' => 'html2ps'.DS.'pipeline.factory.class.php'));
  parse_config_file(APP .'vendors'. DS .'html2ps'. DS .'html2ps.config');

Cakephp 2.3.X : In PdfComponent you have to change the code same as bellow..

// Include the class file and create Html2ps instance

App::import('Vendor', 'Html2PsConfig', array('file' => 'html2ps'.DS.'config.inc.php')); 
  App::import('Vendor', 'Html2Ps', array('file' => 'html2ps'.DS.'pipeline.factory.class.php'));
  parse_config_file(APP .'Vendor'. DS .'html2ps'. DS .'html2ps.config');

html2pdf - "Can not buid tree with empty xml" getting error using html...

cakephp html2pdf