[Extension] Pdffactory

Discuss the extension pdffactory in this topic.

Hello, Can you please help me? I’m a total noob. I don’t get how create a file from this extension.

Thank you.

I have followed the installation instructions, the setting in config/main. But I don’t understand the next step are. and the way it produces the pdf from the data that I have.

For loop Multiple pdf files

How can I create multiple pdfs on a for loop?

I have this:


foreach ($elements as $element) 

{

   $accPdf  =  AccreditationPdf::doc();

   $accPdf  -> setData(array('model'=>$model, 'elements'=>$elements));

   $pdfFile = $accPdf -> output('F');

...



But i get: Undefined property: TCPDF::$h If only one pdf, it works fine.