Jump to content

Question

Posted

Hi,

 

I would like to create a PDF report from a blesta plugin.

Seems like i can use http://source-docs.blesta.com/class-TCPDF.html, for the pdf generation.

 

tried to load uisng

 

 

Loader::loadModels($this, array("TCPDF")); from plugin, but it's shows error.

 

Is there any code snippet to use  TCPDF class?

Will be helpful if i get a code on how to generate pdf from plug-in using TCPDF.

 

 

4 answers to this question

Recommended Posts

  • 0
Posted

TCPDF is not a model, which is why you receive an error. It is vendor code, so you would need to load it directly.

include_once VENDORDIR . "tcpdf" . DS . "tcpdf.php";

There is a TCPDF wrapper class for the invoice templates component which may or may not be useful for what you're doing.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...