//Pie de página function Footer() { //Posición: a 1,5 cm del final $this->SetY(-15); //Arial italic 8 $this->SetFont('Arial', 'I', 8); //Número de página $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C'); } } $pdf->FPDF('P', 'mm', 'A4'); //$pdf->Open(); $pdf->AliasNbPages(); $pdf->SetLeftMargin(15); $pdf->PageNo(); //$pdf->SetTopMargin(0); $pdf->AddPage(); $pdf->SetFont('Arial', '', 7); $pdf->Cell(190, 10, 'REPORTE DE VENTA DE PRODUCTOS', 0, 0, 'C'); $pdf->Ln(10); $pdf->Cell(150, 5, 'VENTAS REGISTRADAS DESDE EL ' . $_REQUEST['fecha'] . ' AL ' . $_REQUEST['fecha2'] . '', 0, 0, 'L'); $pdf->Ln(5); $pdf->Cell(275, 5, '', 0, 0, 'C'); $pdf->Ln(5); $pdf->SetWidths(array(12, 15, 25, 80, 20, 16, 16)); //srand(microtime()*1000000); $pdf->Row(array('Nro', 'FECHA', 'TIPO PRODUCTO', 'DESCRIPCION', 'CANTIDAD', 'PRECIO', 'IMPORTE')); $rs = $venta->ventas_listar_fecha($_REQUEST['fecha'], $_REQUEST['fecha2']); if ($rs) { $j = 1;