Tema: crear pdf
Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/08/2012, 18:59
Avatar de xIamAlex
xIamAlex
 
Fecha de Ingreso: abril-2012
Ubicación: Venezuela
Mensajes: 118
Antigüedad: 12 años
Puntos: 23
Respuesta: crear pdf

Cita:
Iniciado por trofserpiente Ver Mensaje
y no sabrías decirme que función usar
Nunca he trabajado con ella

Pero encontré algo interesante en una web, no se si esté permitido copiar contenido de otra página pero me arriesgo (jeje) aquí va citando al autor(a):

Cita:
came across thsi little gem while searching for a PHP class that allowed me to create PDFs on the fly using PHP. Basically, FPDF is a PHP class which generates PDF files using PHP. It is a free class and full documentation of its use and hw to use it can be found here .

With FPDF you can format a PDF in the same way that you would any PDF. There is support for header and footers, page breaks, images, colors and font-styling and page compression amongst other things.

FPDF works with PHP4 and PHP5.

The class is available for download from the FPDF site .

Once downloaded, put the class into site wherever you fancy and creating a PDF can be as simple as using the following code:

<?php
require('fpdf.php');

$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();
?>
Full documentation on how to use FPDF can be found on the main site at: http://www.fpdf.org/

Try it, you might like it
Enlace, página, autor -> http://nick.boldison.com/websites/ph...les-using-php/

Según esto debes usar estos dos métodos SetFont() y Cell(), probá con $pdf->SetFont('Arial','B',16); y luego $pdf->Cell(40,10,$fila['nombre']. $fila['cedula']); justo antes del output a ver si va
__________________
Las personas quieren autos, casas, teléfonos, dinero, poder, ser famosos, parejas, en fin.. yo solo quiero ser libre y feliz.