Código PHP:
Ver original
$name =$row['name'];
$apellidos = $row['apellidos'];
$dni = $row['dni'];
{
$pdf=new FPDF();
$pdf->AddPage('P','A4');
$pdf->Image('firma.jpg' , 80,235, 40, 20,'JPG', '');
$pdf->SetFont('Arial','B',10);
$pdf->Ln();
$pdf->Cell(100,40,'',1,0,'C');////CUADRO ENCABEZADO//////1LINEA
$pdf->Cell(1,40,'',0,0,'C');///////ESPACIO PEQUENO///////////1LINEA
$pdf->Cell(85,5,'',1,0,'C');////////MARCA WHIRLPOOL1LINEA
$pdf->Ln();///////SALTO A 2 LINEA//////
$pdf->Cell(100,1,'',0,0,'C');///////ESPACIO PEQUENO 2 LINEA IZQ/////////
$pdf->Cell(1,35,'',0,0,'C');/////ESPACIO PEQUENO///////////2LINEA CENTRO/////
$pdf->Cell(85,1,'',0,0,'C');////ESPACIO PEQUENO 2 LINEA DRCH/////////
$pdf->Ln();///////SALTO A 3 LINEA//////
$pdf->Cell(100,40,'',0,0,'C');////CUADRO ENCABEZADO//////1LINEA
$pdf->Cell(1,40,'',0,0,'C');///////ESPACIO PEQUENO///////////1LINEA
$pdf->Cell(85,34,'',1,0,'C');
$pdf->SetXY(-98,26);$pdf->Cell(0,20,'NºAviso',0,5,'L');$pdf->SetXY(-100,33.5);$pdf->SetFont('Arial','I',9);$pdf->Cell(85,5,$id_aviso,0,0,'C');
$pdf->SetFont('Arial','B',8);$pdf->SetXY(-98,30);$pdf->Cell(0,20,'NºFactura WM2 /',0,5,'L');$pdf->SetXY(-100,37.5);$pdf->SetFont('Arial','I',9);$pdf->Cell(85,5,$id_factura,0,0,'C');
$pdf->SetFont('Arial','B',8);$pdf->SetXY(-98,34);$pdf->Cell(0,20,'F.Realización',0,5,'L');$pdf->SetXY(-100,41.5);$pdf->SetFont('Arial','I',9);$pdf->Cell(85,5,$realizacion,0,0,'C');
$pdf->SetFont('Arial','B',8);$pdf->SetXY(-98,38);$pdf->Cell(0,20,'F.Recepción',0,5,'L');$pdf->SetXY(-100,45.5);$pdf->SetFont('Arial','I',9);$pdf->Cell(85,5,$recepcion,0,0,'C');
$pdf->SetXY(30,51.5);$pdf->Cell(30,5,$name,0,0,'L');$pdf->Cell(85,5,$apellidos,0,0,'L');
$pdf->SetXY(30,56.5);$pdf->Cell(100,5,$calle,0,0,'L');$pdf->Cell(5,5,$numero,0,0,'L');$pdf->Cell(5,5,$edificio,0,0,'L');$pdf->Cell(10,5,$puerta,0,0,'L');$pdf->Cell(5,5,$piso,0,0,'L');$pdf->Cell(5,5,$letra,0,0,'L');
$pdf->SetXY(30,61.5);$pdf->Cell(30,5,$localidad,0,0,'L');$pdf->SetXY(170,61.5);$pdf->Cell(30,5,$provincia,0,0,'L');
$pdf->SetXY(160,51.5);$pdf->Cell(30,5,$dni,0,0,'L');
$pdf->SetXY(30,66.5);$pdf->Cell(30,5,$telefonos,0,0,'L'); $pdf->SetXY(48,66.5);$pdf->Cell(0,5,'/',0,0,'L');$pdf->SetXY(50,66.5);$pdf->Cell(30,5,$movil,0,0,'L');
$pdf->SetXY(174,197);$pdf->Cell(30,5,$material,0,0,'C');
$pdf->SetXY(174,202.5);$pdf->Cell(30,5,$obra,0,0,'C');
$pdf->SetXY(174,208);$pdf->Cell(30,5,$desplazamiento,0,0,'C');
$pdf->SetXY(174,213.5);$pdf->Cell(30,5,$base,0,0,'C');
$pdf->SetXY(174,224.5);$pdf->Cell(30,5,$iva,0,0,'C');
$pdf->SetFont('Arial','I',10);$pdf->SetXY(173,230);$pdf->Cell(30,5,$total,0,0,'C');
}
}