Saturday, 15 January 2011

mPDF - or any other PHP lib for conver HTML + CSS --> PDF -



mPDF - or any other PHP lib for conver HTML + CSS --> PDF -

i starting utilize mpdf php library create simple site conert few things html, having epic problem start using it, time error like:

warning: require_once(d:/xampp/htdocs/xampp/cv/mpdf53/config_cp.php): failed open stream: no such file or directory in d:\xampp\htdocs\xampp\cv\mpdf53\mpdf.php on line 39 fatal error: require_once(): failed opening required 'd:/xampp/htdocs/xampp/cv/mpdf53/config_cp.php' (include_path='.;d:\xampp\php\pear') in d:\xampp\htdocs\xampp\cv\mpdf53\mpdf.php on line 39

line 39 in mpdf.php says:

require_once(_mpdf_path.'config_cp.php');

i dont have config_cp.php in of directory , seek more version of mpdf same problem. in general yea know not working because of missing file why? , how can prepare it? seek manualy create blanked file name , didnt help.

i testing on localhost , on ftp well, on both same problem , cant because of bad permissions.

any thought how can prepare it? or have experience other html + css -> pdf lib?

upon installing module (v7.x-2.1) , mpdf library (v5.6), got wsod @ /admin/config/user-interface/mpdf

checking logs saw "warning: require_once(/var/www/vhosts/sitename.com/httpdocs/sites/all/libraries/mpdf/config_cp.php) [function.require-once]: failed open stream: no such file or directory in require_once() (line 39 of /var/www/vhosts/sitename.com/httpdocs/sites/all/libraries/mpdf/mpdf.php)."

sure enough, line 39 of mpdf.php calls file called "config_cp.php" not in library package. after finding file online , adding library folder, config page loaded properly.

you can re-create of config_cp.php here: http://www.phpkode.com/source/p/mpdf/mpdf53/config_cp.php

php pdf

No comments:

Post a Comment