Esempio n. 1
0
        $this->SetXY(7, 7);
        $this->Image('../images/' . CONFIG("EMP_LOGO") . '', '', '', 48, 18, '', '', '', false, 300, '', false, false, 0, false, false, false);
        $this->SetXY(140, 10);
        $this->Image('../images/remisiones/remision_title.jpg', '', '', 60, 20, '', '', '', false, 300, '', false, false, 0, false, false, false);
    }
}
$pdf = new mipdf(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'windows-1252', false);
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf->SetMargins(1, 85, 1);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//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
$pdf->setLanguageArray($l);
// Agregar pagina
$pdf->AddPage();
//$pdf->Write(0, 'Titulo del Reporte', '', 0, 'L', true, 0, false, false, 0);
$pdf->SetFont('helvetica', '', 8);
//------------------------------------------------------------------------------------------------
//$pdf->SetXY(10, 10);
$tbl = $html_top . $datos . $tbl_head . $tbl_regs . $tbl_inf . $resultados . $html_fondo;
$pdf->writeHTML($tbl, true, false, false, false, '');
$pdf->Output('remision.pdf', 'I');