Me gustaria saber si con los campos de un registro se puede crear un documento pdf para luego imprimir estos en papel ¿es posible?
Si es posible como se puede hacer que en ese pdf la letra sega grande a forma de un cartel anunciador??
gracias
| ||||
generar pdf e imprimir Me gustaria saber si con los campos de un registro se puede crear un documento pdf para luego imprimir estos en papel ¿es posible? Si es posible como se puede hacer que en ese pdf la letra sega grande a forma de un cartel anunciador?? gracias
__________________ Foro de futbol andaluz, todos los equipos de futbol de Andalucia |
| ||||
Hola pereztroff: Visita www.fpdf.org Yo lo uso en mi galería de imágenes (desde mi perfil, en la galería y el botón de impresión)... A las letras puedes darle el tamaño y estilo que quieras... Saludos ![]()
__________________ Por favor: No hagan preguntas de temas de foros en mensajes privados... no las respondo |
| ||||
Gracias Caricatos voy a revisarlo ahora mismo.
__________________ Foro de futbol andaluz, todos los equipos de futbol de Andalucia |
| ||||
Hice la primera prueba y me dio error, ¿que significa?: Warning: setfont(helveticab.php): failed to open stream: No such file or directory in /home/xxxx/public_html/xxxxxxx/xxx/fpdf.php on line 550 Warning: setfont(helveticab.php): failed to open stream: No such file or directory in /home/xxxx/public_html/xxxxxxx/xxx/fpdf.php on line 550 Warning: setfont(): Failed opening 'helveticab.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/xxxxxxx/xxx/fpdf.php on line 550 FPDF error: Could not include font metric file
__________________ Foro de futbol andaluz, todos los equipos de futbol de Andalucia |
| ||||
Tema resuelto, se me olvido subir la carpeta "font". ¿como hago para imprimir campos de un registro determinado? estuve leyndo un ejemplo pero no me aclaro, gracias.
__________________ Foro de futbol andaluz, todos los equipos de futbol de Andalucia |
| ||||
Hola Caricatos, Bueno ya consegui pasar los datos de los diferentes campos para crear el pdf, pero soy incapaz de que me muestre una imagen, tengo en una varibale llamada $foto el nombre de archivo a mostrar y en el servidor fisicamente el archivo ¿como lo hago? Tambien se me momtan el texto de los diferentes campos, ¿como coloco unos debajo de otros? Gracias.
__________________ Foro de futbol andaluz, todos los equipos de futbol de Andalucia |
| ||||
Ya me toma todos los contenidos en sus respectivas varibales al final puse para imprimir la imagen en el pdf $pdf->Image($fotofinal,0,0); pero ahora me da otro tipo de error como el siguiente: Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/xxxx/creapdf.php:13) in /home/xxxx/public_html/xxxx/fpdf.php on line 1022 FPDF error: Some data has already been output to browser, can't send PDF file ¿que es ese erro?
__________________ Foro de futbol andaluz, todos los equipos de futbol de Andalucia |
| ||||
![]() Incluye por favor tu codigo de creapdf.php A mi me da el error en los casos de que la imagen no exista.. lo que hice es validar la existencia de la imagen con una funcion, y si no existe, trae por defecto una imagen en blanco.... no estoy en la oficina por el momento pero verifica eso... verifica que el valor de la imagen tenga asociada el directorio donde esta la imagen Un saludo Frank |
| ||||
Bueno al final resolvi el problema para que la foto salga $foto=$_GET['foto']; $fotofinal='../fotos/'.$foto; ........... .... $pdf->Image($fotofinal,80,190); lo que no tengo claro es como ubicar cada dato en una fila, creo que va con coordenadas x,y ¿alguien sabe? gracias
__________________ Foro de futbol andaluz, todos los equipos de futbol de Andalucia |
| ||||
Hola pereztroff: No sé si lo que quieres se parece a lo que tengo en mi página, pero te paso el código:
Código:
La selección de parámetros se ve aquí: http://www.sucaricatura.com/imprimir...s/2002V087.jpg<?php require('../fpdf/fpdf.php'); require('rotation.php'); define('FPDF_FONTPATH','../fpdf/font/'); if (isset($_GET["foto"])) { $foto = urldecode($_GET["foto"]); } else { $foto = "../2002/fotos/2002V087.jpg"; } if (isset($_GET["formato"])) { $formato = $_GET["formato"]; } else { $formato = "V"; } if (isset($_GET["pag"])) { $pag = $_GET["pag"]; } else { $pag = "A4"; } if ($pag == "A6") $a = array (105.0, 148.5); else $a = $pag; if ($formato == "H") $formatoPdf = ($pag == "A6" || $pag == "A4") ? "L" : "P"; else $formatoPdf = ($pag == "A6" || $pag == "A4") ? "P" : "L"; //class PDF extends FPDF { class PDF extends PDF_Rotate { function RotatedText($x, $y, $txt, $angle) { //Text rotated around its origin $this->Rotate($angle,$x,$y); $this->Text($x,$y,$txt); $this->Rotate(0); } function ponImagen($foto, $x, $y, $ancho, $alto, $tipo, $margen) { $x0 = $x + $margen; $y0 = $y + $margen; $w0 = $ancho - ($margen * 2); $h0 = $alto - ($margen * 2); $this->Image($foto, $x0, $y0, $w0, $h0, $tipo); } function ponLineas($x, $y, $ancho, $alto, $margen, $foto) { $this->SetFont('Arial', '', 8); $this->SetLineWidth(.1); // posición del texto $lineaL = array(5, 100); $lineaP = array(100, 143.5); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0) = $linea[$ancho > $alto]; if ($ancho > $alto) $this->Text($x0 + $x, $y0 + $y, $foto); else $this->RotatedText($x0 + $x, $y0 + $y, $foto, 90); // Línea inferior alargada de la postal $lineaL = array(5, 95, 143.5, 95); $lineaP = array(95, 5, 95, 143.5); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Línea divisoria $lineaL = array(74, 5, 74, 90); $lineaP = array(5, 74, 90, 74); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Pequeña línea inferior derecha y baja de la postal $lineaL = array(90, 90, 143.5, 90); $lineaP = array(90, 5, 90, 50); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Pequeña línea inferior (un poco hacia arriba) derecha y baja de la postal $lineaL = array(90, 80, 143.5, 80); $lineaP = array(80, 5, 80, 50); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Otra pequeña línea inferior (un poco hacia arriba) derecha y baja de la postal $lineaL = array(90, 77, 143.5, 77); $lineaP = array(77, 5, 77, 50); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Línea mayor (un poco hacia arriba) derecha $lineaL = array(78, 70, 143.5, 70); $lineaP = array(70, 5, 70, 70); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Otra línea mayor (un poco hacia arriba) derecha $lineaL = array(78, 60, 143.5, 60); $lineaP = array(60, 5, 60, 70); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Primera línea mayor (un poco hacia arriba) derecha $lineaL = array(78, 50, 143.5, 50); $lineaP = array(50, 5, 50, 70); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Recuadro para el sello $lineaL = array(123.5, 5, 20, 25); $lineaP = array(5, 5, 25, 20); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Rect($x0 + $x, $y0 + $y, $x1, $y1, ""); } } //$a = array (105.0, 148.5); $pdf=new PDF($formatoPdf, 'mm', $a); $pdf->AddPage(); switch ($pag) { case "A6": if ($formatoPdf == "P") { $pdf->ponImagen($foto, 0, 0, 105, 148.5, 'JPEG', 5); } else { $pdf->ponImagen($foto, 0, 0, 148.5, 105, 'JPEG', 5); } break; case "A5": if ($formatoPdf == "L") { $pdf->Image($foto, 5, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 110, 5, 95, 138, 'JPEG'); } else { $pdf->Image($foto, 5, 5, 138, 95, 'JPEG'); $pdf->Image($foto, 5, 110, 138, 95, 'JPEG'); } break; case "A4": if ($formatoPdf == "P") { $pdf->Image($foto, 5, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 110, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 5, 153, 95, 138, 'JPEG'); $pdf->Image($foto, 110, 153, 95, 138, 'JPEG'); } else { $pdf->Image($foto, 5, 5, 138, 95, 'JPEG'); $pdf->Image($foto, 5, 110, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 5, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 110, 138, 95, 'JPEG'); } break; case "A3": if ($formatoPdf == "L") { $pdf->Image($foto, 5, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 110, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 5, 153, 95, 138, 'JPEG'); $pdf->Image($foto, 110, 153, 95, 138, 'JPEG'); $pdf->Image($foto, 215, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 320, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 215, 153, 95, 138, 'JPEG'); $pdf->Image($foto, 320, 153, 95, 138, 'JPEG'); } else { $pdf->Image($foto, 5, 5, 138, 95, 'JPEG'); $pdf->Image($foto, 5, 110, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 5, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 110, 138, 95, 'JPEG'); $pdf->Image($foto, 5, 215, 138, 95, 'JPEG'); $pdf->Image($foto, 5, 320, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 215, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 320, 138, 95, 'JPEG'); } break; } $pdf->AddPage(); switch ($pag) { case "A6": if ($formatoPdf == "P") { $pdf->ponLineas(0, 0, 105, 148.5, 5, $foto); } else { $pdf->ponLineas(0, 0, 148.5, 105, 5, $foto); } break; case "A5": if ($formatoPdf == "L") { $pdf->ponLineas(0, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(105, 0, 105, 148.5, 5, $foto); } else { $pdf->ponLineas(0, 0, 148.5, 105, 5, $foto); $pdf->ponLineas(0, 105, 148.5, 105, 5, $foto); } break; case "A4": if ($formatoPdf == "P") { $pdf->ponLineas(0, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(105, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(0, 148.5, 105, 148.5, 5, $foto); $pdf->ponLineas(105, 148.5, 105, 148.5, 5, $foto); } else { $pdf->ponLineas(0, 0, 148.5, 105, 5, $foto); $pdf->ponLineas(0, 105, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 0, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 105, 148.5, 105, 5, $foto); } break; case "A3": if ($formatoPdf == "L") { $pdf->ponLineas(0, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(105, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(0, 148.5, 105, 148.5, 5, $foto); $pdf->ponLineas(105, 148.5, 105, 148.5, 5, $foto); $pdf->ponLineas(210, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(315, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(210, 148.5, 105, 148.5, 5, $foto); $pdf->ponLineas(315, 148.5, 105, 148.5, 5, $foto); } else { $pdf->ponLineas(0, 0, 148.5, 105, 5, $foto); $pdf->ponLineas(0, 105, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 0, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 105, 148.5, 105, 5, $foto); $pdf->ponLineas(0, 210, 148.5, 105, 5, $foto); $pdf->ponLineas(0, 315, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 210, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 315, 148.5, 105, 5, $foto); } break; } $pdf->Output(); ?> Y el resultado: http://www.sucaricatura.com/fpdf/cre....jpg&formato=V Saludos ![]()
__________________ Por favor: No hagan preguntas de temas de foros en mensajes privados... no las respondo |
| ||||
Gracias Caricatos, revisare lo que me dices.
__________________ Foro de futbol andaluz, todos los equipos de futbol de Andalucia |
| ||||
Cita: Estuve probando pero las lineas se me montan unas encima de otras no se como hacerlo.
Iniciado por caricatos Hola pereztroff: No sé si lo que quieres se parece a lo que tengo en mi página, pero te paso el código:
Código:
La selección de parámetros se ve aquí: http://www.sucaricatura.com/imprimir...s/2002V087.jpg<?php require('../fpdf/fpdf.php'); require('rotation.php'); define('FPDF_FONTPATH','../fpdf/font/'); if (isset($_GET["foto"])) { $foto = urldecode($_GET["foto"]); } else { $foto = "../2002/fotos/2002V087.jpg"; } if (isset($_GET["formato"])) { $formato = $_GET["formato"]; } else { $formato = "V"; } if (isset($_GET["pag"])) { $pag = $_GET["pag"]; } else { $pag = "A4"; } if ($pag == "A6") $a = array (105.0, 148.5); else $a = $pag; if ($formato == "H") $formatoPdf = ($pag == "A6" || $pag == "A4") ? "L" : "P"; else $formatoPdf = ($pag == "A6" || $pag == "A4") ? "P" : "L"; //class PDF extends FPDF { class PDF extends PDF_Rotate { function RotatedText($x, $y, $txt, $angle) { //Text rotated around its origin $this->Rotate($angle,$x,$y); $this->Text($x,$y,$txt); $this->Rotate(0); } function ponImagen($foto, $x, $y, $ancho, $alto, $tipo, $margen) { $x0 = $x + $margen; $y0 = $y + $margen; $w0 = $ancho - ($margen * 2); $h0 = $alto - ($margen * 2); $this->Image($foto, $x0, $y0, $w0, $h0, $tipo); } function ponLineas($x, $y, $ancho, $alto, $margen, $foto) { $this->SetFont('Arial', '', 8); $this->SetLineWidth(.1); // posición del texto $lineaL = array(5, 100); $lineaP = array(100, 143.5); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0) = $linea[$ancho > $alto]; if ($ancho > $alto) $this->Text($x0 + $x, $y0 + $y, $foto); else $this->RotatedText($x0 + $x, $y0 + $y, $foto, 90); // Línea inferior alargada de la postal $lineaL = array(5, 95, 143.5, 95); $lineaP = array(95, 5, 95, 143.5); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Línea divisoria $lineaL = array(74, 5, 74, 90); $lineaP = array(5, 74, 90, 74); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Pequeña línea inferior derecha y baja de la postal $lineaL = array(90, 90, 143.5, 90); $lineaP = array(90, 5, 90, 50); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Pequeña línea inferior (un poco hacia arriba) derecha y baja de la postal $lineaL = array(90, 80, 143.5, 80); $lineaP = array(80, 5, 80, 50); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Otra pequeña línea inferior (un poco hacia arriba) derecha y baja de la postal $lineaL = array(90, 77, 143.5, 77); $lineaP = array(77, 5, 77, 50); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Línea mayor (un poco hacia arriba) derecha $lineaL = array(78, 70, 143.5, 70); $lineaP = array(70, 5, 70, 70); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Otra línea mayor (un poco hacia arriba) derecha $lineaL = array(78, 60, 143.5, 60); $lineaP = array(60, 5, 60, 70); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Primera línea mayor (un poco hacia arriba) derecha $lineaL = array(78, 50, 143.5, 50); $lineaP = array(50, 5, 50, 70); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Line($x0 + $x, $y0 + $y, $x1 + $x, $y1 + $y); // Recuadro para el sello $lineaL = array(123.5, 5, 20, 25); $lineaP = array(5, 5, 25, 20); $linea = array(true => $lineaL, false => $lineaP); list($x0, $y0, $x1, $y1) = $linea[$ancho > $alto]; $this->Rect($x0 + $x, $y0 + $y, $x1, $y1, ""); } } //$a = array (105.0, 148.5); $pdf=new PDF($formatoPdf, 'mm', $a); $pdf->AddPage(); switch ($pag) { case "A6": if ($formatoPdf == "P") { $pdf->ponImagen($foto, 0, 0, 105, 148.5, 'JPEG', 5); } else { $pdf->ponImagen($foto, 0, 0, 148.5, 105, 'JPEG', 5); } break; case "A5": if ($formatoPdf == "L") { $pdf->Image($foto, 5, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 110, 5, 95, 138, 'JPEG'); } else { $pdf->Image($foto, 5, 5, 138, 95, 'JPEG'); $pdf->Image($foto, 5, 110, 138, 95, 'JPEG'); } break; case "A4": if ($formatoPdf == "P") { $pdf->Image($foto, 5, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 110, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 5, 153, 95, 138, 'JPEG'); $pdf->Image($foto, 110, 153, 95, 138, 'JPEG'); } else { $pdf->Image($foto, 5, 5, 138, 95, 'JPEG'); $pdf->Image($foto, 5, 110, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 5, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 110, 138, 95, 'JPEG'); } break; case "A3": if ($formatoPdf == "L") { $pdf->Image($foto, 5, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 110, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 5, 153, 95, 138, 'JPEG'); $pdf->Image($foto, 110, 153, 95, 138, 'JPEG'); $pdf->Image($foto, 215, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 320, 5, 95, 138, 'JPEG'); $pdf->Image($foto, 215, 153, 95, 138, 'JPEG'); $pdf->Image($foto, 320, 153, 95, 138, 'JPEG'); } else { $pdf->Image($foto, 5, 5, 138, 95, 'JPEG'); $pdf->Image($foto, 5, 110, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 5, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 110, 138, 95, 'JPEG'); $pdf->Image($foto, 5, 215, 138, 95, 'JPEG'); $pdf->Image($foto, 5, 320, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 215, 138, 95, 'JPEG'); $pdf->Image($foto, 153, 320, 138, 95, 'JPEG'); } break; } $pdf->AddPage(); switch ($pag) { case "A6": if ($formatoPdf == "P") { $pdf->ponLineas(0, 0, 105, 148.5, 5, $foto); } else { $pdf->ponLineas(0, 0, 148.5, 105, 5, $foto); } break; case "A5": if ($formatoPdf == "L") { $pdf->ponLineas(0, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(105, 0, 105, 148.5, 5, $foto); } else { $pdf->ponLineas(0, 0, 148.5, 105, 5, $foto); $pdf->ponLineas(0, 105, 148.5, 105, 5, $foto); } break; case "A4": if ($formatoPdf == "P") { $pdf->ponLineas(0, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(105, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(0, 148.5, 105, 148.5, 5, $foto); $pdf->ponLineas(105, 148.5, 105, 148.5, 5, $foto); } else { $pdf->ponLineas(0, 0, 148.5, 105, 5, $foto); $pdf->ponLineas(0, 105, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 0, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 105, 148.5, 105, 5, $foto); } break; case "A3": if ($formatoPdf == "L") { $pdf->ponLineas(0, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(105, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(0, 148.5, 105, 148.5, 5, $foto); $pdf->ponLineas(105, 148.5, 105, 148.5, 5, $foto); $pdf->ponLineas(210, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(315, 0, 105, 148.5, 5, $foto); $pdf->ponLineas(210, 148.5, 105, 148.5, 5, $foto); $pdf->ponLineas(315, 148.5, 105, 148.5, 5, $foto); } else { $pdf->ponLineas(0, 0, 148.5, 105, 5, $foto); $pdf->ponLineas(0, 105, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 0, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 105, 148.5, 105, 5, $foto); $pdf->ponLineas(0, 210, 148.5, 105, 5, $foto); $pdf->ponLineas(0, 315, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 210, 148.5, 105, 5, $foto); $pdf->ponLineas(148.5, 315, 148.5, 105, 5, $foto); } break; } $pdf->Output(); ?> Y el resultado: http://www.sucaricatura.com/fpdf/cre....jpg&formato=V Saludos ![]() No se si comente antes que los datos que imprimo proviene de una base de datos.
__________________ Foro de futbol andaluz, todos los equipos de futbol de Andalucia |