Thanks Cpradio, Here is my pdf.php.
<?php
require('../fpdf/fpdf.php');
class PDF extends FPDF
{
function PDF($orientation='L', $unit='mm', $size='A4')
{
// Call parent constructor
$this->FPDF($orientation,$unit,$size);
}
// Page header
function Header()
{
// Logo
$this->Image('logo.png',10,6,30);
// Arial bold 10
$this->SetFont('Arial','',10);
// Move to the right
$this->Cell(70);
// Owner
$this->Cell(130,6,'OWNER:',1,0,'L');
// Repair Order No
$this->Cell(80,6,'REPAIR ORDER NO:',1,1,'L');
// Move to the right
$this->Cell(70);
// Address
$this->Cell(130,6,'ADDRESS:',1,0,'L');
// Open Date
$this->Cell(80,6, $openDate,1,1,'L');
// Move to the right
$this->Cell(70);
// Customer Code
$this->Cell(80,6,'CUSTOMER CODE:',1,0,'L');
// Res
$this->Cell(60,6,'RES:',1,0,'L');
// Open Time
$this->Cell(70,6,'OPEN TIME:',1,1,'L');
// Move to the right
$this->Cell(70);
// Mobile Number
$this->Cell(60,6,'MOBILE NO:',1,0,'L');
// Email
$this->Cell(80,6,'EMAIL:',1,0,'L');
// R .O Type
$this->Cell(70,6,'R. O TYPE:',1,1,'L');
// Move to the right
$this->Cell(70);
// Office Telelphone
$this->Cell(80,6,'TELEPHONE:',1,0,'L');
// Date
$this->Cell(60,6,'DATE:',1,0,'L');
// Section
$this->Cell(70,6,'SECTION:',1,1,'L');
// Move to the right
$this->Cell(70);
// Repair Time
$this->Cell(60,6,'REPAIR TIME:',1,0,'L');
// Prepared By
$this->Cell(60,6,'PREP BY(CODE):',1,0,'L');
// Promised Delivery Date
$this->Cell(45,6,'PRO DL DATE:',1,0,'L');
// Revised Delivery Date
$this->Cell(45,6,'REV DL DATE:',1,1,'L');
$this->Cell(70);
// Primary Repair Order Number
$this->Cell(60,6,'PRY R.O NO:',1,0,'L');
// Prepared By
$this->Cell(60,6,'PREP BY:',1,0,'L');
// Promised Delivery Time
$this->Cell(45,6,'PRO DL TIME:',1,0,'L');
// Revised Delivery Time
$this->Cell(45,6,'REV DL TIME:',1,1,'L');
// Move to the right
$this->Cell(70);
// VIN
$this->Cell(60,6,'VIN:',1,0,'L');
// Reg No
$this->Cell(60,6,'REG. NO:',1,0,'L');
// Kms In
$this->Cell(45,6,'KMS IN:',1,0,'L');
// Kms Out
$this->Cell(45,6,'KMS OUT:',1,1,'L');
// Move to the right
$this->Cell(70);
// Model
$this->Cell(55,6,'MODEL:',1,0,'L');
// Engine No
$this->Cell(55,6,'ENG. NO:',1,0,'L');
// MT
$this->Cell(20,6,'MT:',1,0,'L');
// Kms Out
$this->Cell(20,6,'AT:',1,0,'L');
// Parking Location
$this->Cell(60,6,'PARK. LOC:',1,0,'L');
// Line break
$this->Ln(6);
}
// Page footer
function Footer()
{
// Position at 0.5 cm from bottom
$this->SetY(-8);
// Arial italic 8
$this->SetFont('Arial','I',8);
// Page number
$this->Cell(0,10,'Created by Papadammy',0,0,'C');
}
function BodyPart()
{
$this->SetFont('Arial','B',6);
// Checklist
$this->Cell(50,6,'CHECK LIST',0,1,'C');
// Repair Order No
$this->Cell(25,4,'SERVICE BOOK',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// RC Book
$this->Cell(25,4,'RC BOOK',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Spare Wheel
$this->Cell(25,4,'SPARE WHEEL',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Jack & HAndle
$this->Cell(25,5,'JACK & HANDLE',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Tool Kit
$this->Cell(25,5,'TOOL KIT',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Fire Extinguisher
$this->Cell(25,5,'FIRE EXTINGUISHER',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// C- Caution
$this->Cell(25,5,'C-CAUTION',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Wheel Caps
$this->Cell(25,5,'WHEEL CAPS',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Mud Flap
$this->Cell(25,5,'MUD FLAP',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Floor Mat
$this->Cell(25,5,'FLOOR MAT',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Antenna
$this->Cell(25,5,'ANTENNA',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// O/S RV Mirror
$this->Cell(25,5,'O/S RV MIRROE',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Monograms
$this->Cell(25,5,'MONOGRAMS',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Head rest
$this->Cell(25,5,'HEAD REST',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Cigarette Lighter
$this->Cell(25,5,'CIG LIGHTER',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// CD/Stereo Player
$this->Cell(25,5,'CD/STEREO PLAYER',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// No of Speakers
$this->Cell(25,5,'NO OF SPEAKERS',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Digital Clock
$this->Cell(25,5,'DIGITAL CLOCK',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Head Lamps LH/RH
$this->Cell(25,5,'HEAD LAMP LH/RH',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Tail Lamp LH/RH
$this->Cell(25,5,'TAIL LAMP LH/RH',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Side Lamps
$this->Cell(25,5,'SIDE LAMPS',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Air Conditioner
$this->Cell(25,5,'AIR CONDITIONER',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Power Window
$this->Cell(25,5,'POWER WINDOW',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
// Wipers
$this->Cell(25,5,'WIPERS',0,0,'L');
//Move cell to the right
$this->Cell(10);
$this->Cell(4, 4, '', 1, 1, 'C' );
$this->Ln(13);
}
//Estimate Ref and co
function EstimateRef()
{
//Set the font
$this->SetFont('Arial', '', 7);
//Move the cell to the right
$this->SetXY(54, 65);
// Estimate Ref
$this->Cell(50,6,'ESTIMATE REF',1,0,'L');
// Date
$this->Cell(50,6,'DATE',1,1,'L');
//Move the cell to the right
$this->SetXY(54, 71);
// Contractor Customer
$this->Cell(37,6,'CONTRACTOR CUSTOMER',1,0,'L');
$this->Cell(10,6,'',1,0,'L');
// Spl Package
$this->Cell(20,6,'SPL PACKAGE',1,0,'L');
$this->Cell(10,6,'',1,0,'L');
// Others
$this->Cell(13,6,'OTHERS',1,0,'L');
$this->Cell(10,6,'',1,0,'L');
}
function LubService()
{
//Set the font for Lub Services
$this->SetFont('Arial', '', 4);
//Set the coordinate for Lub Service
$this->SetXY(160, 65);
// Lubrication Services
$this->Cell(12,4,'LUB SERVICE',1,0,'C');
// Body Wash
$this->Cell(10,4,'BODY WASH',1,0,'C');
// Full Wash
$this->Cell(10,4,'FULL WASH',1,0,'C');
// Lubrication
$this->Cell(10,4,'LUBRICATION',1,0,'C');
// E. Oil Cahnge
$this->Cell(10,4,'E. OIL CHG',1,0,'C');
// E Oil Top Up
$this->Cell(11,4,'E. OIL TOP UP',1,0,'C');
// Filter Change
$this->Cell(10,4,'FILTER CHG',1,0,'C');
// Dif Oil Change
$this->Cell(10,4,'DIF. OIL CHG',1,0,'C');
// Dif Oil Change
$this->Cell(12,4,'DIF. OIL TOP UP',1,0,'C');
// Gif Oil Change
$this->Cell(11,4,'GIF OIL CHG',1,0,'C');
// Gif Oil Top Up
$this->Cell(12,4,'GIF. OIL TOP UP',1,0,'C');
// Sig Oil
$this->Cell(10,4,'SIG OIL',1,1,'C');
//Second Line for requested
//Set the font for Lub Services
$this->SetFont('Arial', '', 4);
//Set the coordinate for Lub Service
$this->SetXY(160, 69);
// Lubrication Services
$this->Cell(12,4,'REQUESTED',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(11,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(12,4,'',1,0,'C');
// Lubrication Services
$this->Cell(11,4,'',1,0,'C');
// Lubrication Services
$this->Cell(12,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,1,'C');
//Second Line for requested
//Set the font for Lub Services
$this->SetFont('Arial', '', 4);
//Set the coordinate for Lub Service
$this->SetXY(160, 73);
// Lubrication Services
$this->Cell(12,4,'CARRIED OUT',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(11,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,0,'C');
// Lubrication Services
$this->Cell(12,4,'',1,0,'C');
// Lubrication Services
$this->Cell(11,4,'',1,0,'C');
// Lubrication Services
$this->Cell(12,4,'',1,0,'C');
// Lubrication Services
$this->Cell(10,4,'',1,1,'C');
}
//This handles the agrrement to be signed
function Authorise($authorise)
{
$this->SetFont('Arial','',6);
$this->MultiCell(150, 2, $authorise);
$this->Ln(4);
}
//This handles the agrrement to be signed
function NojAndRco()
{
$this->SetFont('Arial','',8);
$this->SetXY(90, 80);
//Nature of Jobs
$this->Cell(100, 7, 'NATURE OF JOBS/REPAIR REQUESTED', 1, 0, 'C');
//Nature of Jobs
$this->Cell(100, 7, 'REPAIRS CARRIED OUT', 1, 1, 'C');
$this->SetXY(90, 87);
//Nature of Jobs
$this->Cell(70, 5, 'DESCRIPTION', 1, 0, 'C');
//Nature of Jobs
$this->Cell(30, 5, 'OP CODE', 1, 0, 'C');
//Nature of Jobs
$this->Cell(70, 5, 'DESCRIPTION', 1, 0, 'C');
//Nature of Jobs
$this->Cell(30, 5, 'LAB. COST', 1, 1, 'C');
$this->SetXY(90, 92);
//Nature of Jobs
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 0, 'L');
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 1, 'L');
//Set the coordinate
$this->SetXY(90, 97);
//Nature of Jobs
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 0, 'L');
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 1, 'L');
//Set the coordinate
$this->SetXY(90, 102);
//Nature of Jobs
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 0, 'L');
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 1, 'L');
//Set the coordinate
$this->SetXY(90, 107);
//Nature of Jobs
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 0, 'L');
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 1, 'L');
//Set the coordinate
$this->SetXY(90, 112);
//Nature of Jobs
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 0, 'L');
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 1, 'L');
//Set the coordinate
$this->SetXY(90, 117);
//Nature of Jobs
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 0, 'L');
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 1, 'L');
//Set the coordinate
$this->SetXY(90, 122);
//Nature of Jobs
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 0, 'L');
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 1, 'L');
//Set the coordinate
$this->SetXY(90, 127);
//Nature of Jobs
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 0, 'L');
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 1, 'L');
//Set the coordinate
$this->SetXY(90, 132);
//Nature of Jobs
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 0, 'L');
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 1, 'L');
//Set the coordinate
$this->SetXY(90, 137);
//Nature of Jobs
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 0, 'L');
$this->Cell(70, 5, '', 1, 0, 'L');
$this->Cell(30, 5, '', 1, 1, 'L');
}
function JobCompletion()
{
$this->SetXY(90, 143);
$this->SetFont('Arial', '', 8);
$this->Cell(100, 6, 'JOB COMPLETION DETAILS', 1, 1, 'C');
$this->SetXY(90, 149);
$this->Cell(33, 6, 'FLOOR IN CHARGE', 1, 0, 'C');
$this->Cell(33, 6, 'TESTER', 1, 0, 'C');
$this->Cell(34, 6, 'LUB IN CHARGE', 1, 1, 'C');
$this->SetXY(90, 155);
$this->Cell(33, 6, '', 1, 0, 'C');
$this->Cell(33, 6, '', 1, 0, 'C');
$this->Cell(34, 6, '', 1, 1, 'C');
}
function JobCompletion2()
{
$this->SetXY(90, 160);
$this->SetFont('Arial', '', 8);
$this->Cell(60, 6, 'R.O CLOSED BY CODE:', 1, 0, 'L');
$this->Cell(40, 6, 'DATE', 1, 1, 'L');
$this->SetXY(90, 166);
$this->Cell(40, 6, 'G. P NO:', 1, 0, 'L');
$this->Cell(30, 6, 'DATE:', 1, 0, 'L');
$this->Cell(30, 6, 'RECPN:', 1, 1, 'L');
$this->SetXY(90, 172);
$this->Cell(40, 6, 'G. P NO:', 1, 0, 'L');
$this->Cell(30, 6, 'DATE:', 1, 0, 'L');
$this->Cell(30, 6, 'RECPN:', 1, 1, 'L');
}
function SpecialInstruction()
{
$this->SetXY(165, 180);
$this->SetFont('Arial', '', 8);
$this->Cell(50, 6, 'SPECIAL INSTRUCTION/EDP DATA', 1, 1, 'C');
$this->SetXY(165, 186);
$this->Cell(20, 15, '', 1, 0, 'C');
$this->Cell(10, 15, '', 1, 0, 'C');
$this->Cell(20, 15, '', 1, 1, 'C');
}
//This handles the summary
function Summary()
{
$this->SetXY(220, 145);
$this->SetFont('Arial', 'B', 8);
$this->Cell(40, 4, 'DESCRIPTION', 1, 0, 'C');
$this->Cell(30, 4, 'COST', 1, 1, 'C');
$this->SetXY(220, 149);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'LABOUR:', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
$this->SetXY(220, 153);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'PARTS', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
$this->SetXY(220, 157);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'TBA', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
$this->SetXY(220, 161);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'GAS & OIL', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
$this->SetXY(220, 165);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'SUBLET', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
$this->SetXY(220, 169);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'OTHERS', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
$this->SetXY(220, 173);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'TOTAL', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
$this->SetXY(220, 177);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'DISCOUNT(Labour/Parts)', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
$this->SetXY(220, 181);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'VAT', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
$this->SetXY(220, 185);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'NET AMOUNT PAYABLE', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
$this->SetXY(220, 189);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'WARRANTY(Labour/Parts)', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
$this->SetXY(220, 193);
$this->SetFont('Arial', '', 8);
$this->Cell(40, 4, 'I/II SERVICE', 1, 0, 'L');
$this->Cell(30, 4, '', 1, 1, 'C');
}
//This handles the places to place name and signature
function Signature()
{
$this->SetFont('Arial','',6);
$this->SetAutoPageBreak( 1, 5);
$this->Cell(100, 4, 'Name:', 1, 0, 'L');
$this->Cell(50, 4, 'Signature:', 1, 1, 'L');
$this->SetFont('Arial','B',5);
$this->Cell(150, 2, 'Received', 0, 0, 'C');
}
} //closing tag for class declaration
$authorise = 'Me';
$pdf = new PDF();
// First page
$pdf->Open();
$pdf->AddPage();
$pdf->SetFont('Arial','',10);
$pdf->BodyPart();
$pdf->SetFont('Arial','',10);
$pdf->Authorise($authorise);
$pdf->Signature();
$pdf->LubService();
$pdf->EstimateRef();
$pdf->NojAndRco();
$pdf->JobCompletion();
$pdf->JobCompletion2();
$pdf->SpecialInstruction();
$pdf->Summary();
$pdf->Output();
?>