SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Nicola Asuni');
$pdf->SetTitle('Payment Receipt');
$pdf->SetSubject('TCPDF Tutorial');
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
// remove default header/footer
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
// set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// set some language-dependent strings (optional)
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
require_once(dirname(__FILE__).'/lang/eng.php');
$pdf->setLanguageArray($l);
}
// ---------------------------------------------------------
// set font
// add a page
$pdf->SetFont('times', 'A4', 12);
$pdf->AddPage('P');
//$pdf->SetMargins(5, 10, 5, true);
// set some text to print
$html = <<
![]() |
ENERGY FOODS #11, 2nd Street, Radha Nagar Extn. Velachery, Chennai 600042, Tamilnadu. Phone: 044-2253 1316 |
GSTIN: 33ACMPA1286A2Z7 PAN: ACMPA1286A Receipt No: OC-$id Payment Mode - $get_app_info[payment_type] |
Name $get_apps[name] |
Phone $get_apps[phone] |
Age $get_apps[dob] |
Date $appt_date |
Consulting For $get_app_info[consulting_for] |
Country $get_apps[country] |
Fees Rs$get_app_info[amount] /- |
Time $app_info |
Address $get_apps[location_city] |