Current File : /home/inlingua/public_html/sales/address.php |
<?php
require_once('../tcpdf/config/lang/eng.php');
require_once('../tcpdf/tcpdf.php');
$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('TF2 : RAC, DRDO ');
$pdf->SetTitle('FM/A-14');
$pdf->SetSubject('2012');
$pdf->SetKeywords('TF2 RAC DRDO');
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins('10', '5', '5','10');
$pdf->SetAutoPageBreak(TRUE, '6');
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setLanguageArray($l);
$pdf->SetFont('helvetica', '', 9);
$pdf->AddPage();
$html =<<<EOD
$content
EOD;
$pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true);
//$pdf->AddPage();
//$pdf->Output('example_002.pdf', 'I');
$pdf->Output('applications/'.$id.'_'.$num["candidateId_Login"].'.pdf', 'F');
?>