This is a simple, plug it in, it runs, guide. It is still highly recommended that you try and run FPDF successfully without Codeigniter first. So that you know how to actively runs it or your web server supports it.

Step 1: Download the Classes from the FPDF pages.

The fpdf.php in the Codeigniter directory.

The font directory in the fonts directory

Step 2: Config File 1$config['fonts_path']= "path-to-your-fontsdir/fonts/"; Step 3: Create the init_fpdf.php 123456789<?php  if (!defined('BASEPATH')) exit('No direct script access allowed'); if ( ! class_exists('fpdf')){     require_once(BASEPATH.'libraries/fpdf'.EXT); } $obj =& get_instance(); $obj->fpdf = new fpdf(); $obj->ci_is_loaded[] = 'fpdf'; ?> Step 4: Call it, use a controller to test 12345678$this->load->library('fpdf'); define('FPDF_FONTPATH',$this->config->item('fonts_path')); $this->fpdf->Open(); $this->fpdf->AddPage(); $this->fpdf->SetFont('Arial','B',14); $this->fpdf->SetY(30); $this->fpdf->Cell(40,10,'Hello World!'); $this->fpdf->Output('output.pdf','D'); More >