Tags » Tcpdf

TCPDF: Open Source PHP Class for generating PDF documents.

Been using TCPDF the last couple of days and have to say it is real easy to use.  The examples are really easy to follow and then customize to one’s own needs. 98 more words


Pass variable to TCPDF class header or any class function

class MYPDF extends TCPDF {
	public $template;
	public function setData($template){
    $this->template = $template;
	public function Header() {
        // get the current page break margin
        $bMargin = $this->getBreakMargin();
        // get current auto-page-break mode
        $auto_page_break = $this->AutoPageBreak;
        // disable auto-page-break
        $this->SetAutoPageBreak(false, 0);
        // set bacground image
        $img_file = "uploads/template_background_image/".$this->template.".png";
        $this->Image($img_file,0, 100, 390, 397, '', '', '', false, 300, '', false, false, 0);
        // restore auto-page-break status
        $this->SetAutoPageBreak($auto_page_break, $bMargin);
        // set the starting point for the page content

$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, array(400,500), true, 'UTF-8', false);


No text display on TCPDF

I encountered this on one of my development, text are not displayed on TCPDF.

I was able to solve this by adding two things:

  1. // set default font subsetting mode…
  2. 15 more words

The Most Anticipated Games of Toxic Creativity

Do you remember how excited you were when you discovered something you loved was about to be released? We do! As such, we would like to share some of our most Anticipated Video Game Ever! 760 more words


PDF Dev Diary #3: Our game is Evolving

We are entering the 5th month of Pigeon Defense Force. The game has been making huge strides forward thanks to the fantastic work of our Programmer Josh Browning and our modeler Randy Eide – both who have been working feverishly within Unity to get our game running beautifully. 384 more words


Best PDF Maker In PHP

TCPDF is one of the best PDF maker class.

TCPDF is a FLOSS PHP class for generating PDF documents.

Main Features
no external libraries are required for the basic functions; 257 more words


How to generate html to pdf using tcpdf?

To generate pdf from html using tcpdf, follow the below steps:

Step1: Download tcpdf library from below link

Step2: Add tcpdf folder in your project at path :: Your_project/lib/tcpdf… 382 more words