Jump to content
  • 0

Using Tcpdf Class


AllToolKits.com

Question

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.

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...