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();
// set some text to print
$html = <<
ENERGY FOODS | Amount Paid | Paid On |
GSTIN - 33ACMPA1286A2Z7 | Rs. 400/- | $get_app_info[added_date] |
Patient Name | Transaction Reference | Appointment Date |
$get_app_info[name] ($get_app_info[amount]) $get_app_info[mobile_no] |
$get_app_info[payment] $get_app_info[order_id] | $get_app_info[appointment_date] $app_info |