Image('logo.png',10,8,33); $this->SetFont('Arial','B',12); } function ChapterBody($file) { // Leemos el fichero $txt = file_get_contents($file); // Times 12 $this->SetFont('Arial','',12); // Imprimimos el texto justificado $this->MultiCell(0,2,$txt); // Salto de línea $this->Ln(1); // Cita en itálica $this->SetFont('12','I'); $this->Cell(0,5,'(fin del extracto)'); } //Pie de página function Footer() { $this->SetY(-30); $this->SetTextColor(0,0,0); $this->SetFont('Arial','I',6); $this->Ln(4); $this->Ln(10); $this->Cell(30,5,'by:ticketer.es',0,0,'C'); $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C'); } function RotatedText($x,$y,$txt,$angle) { //Text rotated around its origin $this->Rotate($angle,$x,$y); $this->Text($x,$y,$txt); $this->Rotate(0); } } #Creamos el objeto pdf (con medidas en milímetros): $pdf = new FPDF('P', 'mm', 'A4'); #Establecemos los márgenes izquierda, arriba y derecha: $pdf->SetMargins(10, 10 , 10); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Arial','',12); #Establecemos el margen inferior: $pdf->SetAutoPageBreak(true,0); //Aquí escribimos lo que deseamos mostrar // Logo $pdf->SetFillColor(238,233,233); $pdf->SetFont('Arial','',20); $pdf->Cell(79,10,iconv("UTF-8", "ISO-8859-1",$domain),0,'l'); $pdf->Ln(10,10); $pdf->SetFont('Arial','',10); $pdf->SetTextColor(0,0,0); $pdf->Cell(190,10,iconv("UTF-8", "ISO-8859-1",$titulo),0,'C'); $pdf->Ln(15,10); $pdf->Image($foto1 , 10 ,35, 90 , 60,''); //$pdf->Image($foto2 , 110 ,35, 90 , 60,''); //$pdf->Image($foto3 , 10 ,100, 90 , 60,''); //$pdf->Image($foto4 , 110 ,100, 90 , 60,''); $pdf->Image("https://$domain/img/galeria.png" , 10 ,100, 90 , 60,''); $pdf->Image("https://$domain/img/ruta.png" , 110 ,100, 90 , 60,''); $pdf->Ln(130,10); $pdf->MultiCell(190,4,iconv("UTF-8", "ISO-8859-1",$detalle),0,'l'); //$pdf->Image("https://soliventcharter.com/img/reservas.png" , 10 ,220, 25 , 25,''); //$pdf->Cell(150,40,iconv("UTF-8", "ISO-8859-1","Reserva online https://Soliventcharter.com/reservas Tel:669450345"),0,'C'); $pdf->Ln(10,10); //$pdf->Cell(150,40,iconv("UTF-8", "ISO-8859-1","C/ Passeig des moll Pantalán 1 puerto de Ciutadella Menorca"),0,'C'); $pdf->Output("$domain-$nombre.pdf",'I'); $pdf->Close();