Hi,
ich habe ein kleines Problem mit HTML2PDF. Ich erhalte nach Scriptaufruf folgenden Fehler:
Call to a member function node_type() on a non-object in /....../config.parse.php on line 184
Mein Code sieht so aus:
ini_set("memory_limit","512M");
ini_set("max_input_time","180");
ini_set("max_execution_time","180");
require_once('/home/intkulig/public_html/typo3conf/ext/jzpdfmailer/include/config.inc.php');
require_once('/home/intkulig/public_html/typo3conf/ext/jzpdfmailer/include/pipeline.factory.class.php');
parse_config_file('/home/intkulig/public_html/typo3conf/ext/jzpdfmailer/html2pdf/html2ps.config');
//echo "hi";die();
global $g_config;
$g_config = array(
'cssmedia' => 'screen',
'renderimages' => true,
'renderforms' => false,
'renderlinks' => true,
'mode' => 'html',
'debugbox' => false,
'draw_page_border' => false
);
$media = Media::predefined('Letter');
$media->set_landscape(false);
$media->set_margins(array(
'left' => 15,
'right' => 15,
'top' => 25,
'bottom' => 0
));
$pdfContent="http://www.google.com/";
$media->set_pixels(960);
$pipeline = PipelineFactory::create_default_pipeline("", "");
$pipeline->configure($g_config);
$pipeline->pre_tree_filters[] = new PreTreeFilterHTML2PSFields();
$pipeline->destination = new MyDestinationFile($pdfName);
$pipeline->process($pdfContent, $media);
Woran kann das liegen?
Ich komme seit Stunden nicht weiter.
Danke!
LG,
Stephan