Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/06/2013, 20:11
marisolphp
 
Fecha de Ingreso: mayo-2012
Mensajes: 32
Antigüedad: 12 años
Puntos: 1
Respuesta: mostrar pdf en una pagina

Conozco dos formas, una es modficar los headers al momento de mostrar tu archivo con esto

Código PHP:
Ver original
  1. <?php
  2. // We'll be outputting a PDF
  3. header('Content-type: application/pdf');
  4.  
  5. // It will be called downloaded.pdf
  6. header('Content-Disposition: attachment; filename="downloaded.pdf"');
  7.  
  8. // The PDF source is in original.pdf
  9. readfile('original.pdf');
  10. ?>

la otra es con un tag en tu archivo html así
Código HTML:
Ver original
  1. <object   type="application/pdf" data="archivopdf.php"  width="100%"    height="700"  ></object>
esta ultima te lo muestra como embebido en tu pagina y necesita el plugin para pdf.

saludos