[TYPO3-dev] pdf_generator and USER_INT

Jean-Christophe Chatelain chatelain.jean-christophe at agridea.ch
Wed Nov 18 16:11:35 CET 2009


Hi,
I'm trying to generate PDFs with pdf_generator2, when i don't use 
user_int everything is working fine.
this is my page TS :

pdf_generator = PAGE

pdf_generator {
	typeNum ={$extension.pdf_generator.typeNum}
	config {
         	pageGenScript = EXT:pdf_generator2/gen_pdf.php
                 admPanel = 0


	}
	50 = USER_INT
	50.includeLibs = EXT:user_agriviva/include/class.rendertrainings.php
	50.userFunc = renderTrainings->render
}


and my class.rendertrainings.php look like that :



class renderTrainings {
  function render($content,$conf) {
		//instanciation smarty
		$this->SmartyInstance = tx_smarty::smarty();
		$this->SmartyInstance->template_dir = 
t3lib_div::getFileAbsFileName('EXT:user_agriviva/templates');
		//Render en html
		$content=$this->SmartyInstance->display('PDF_C.tpl');
		//retour
		return $content;
	}
}

BTW I use smarty extension to generate the html code. But when I go on 
the page i get this error :

HTML2PDF Problem:
html2ps produced the following errors:

with no output.
Can anyone help me I'm getting mad.
Thanks




More information about the TYPO3-dev mailing list