Results 1 to 3 of 3

Thread: PDF in a table/div/frame

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    67

    PDF in a table/div/frame

    is their a way that i would open my pdf files in a table/div/frame using php?


    it goes like this:


    ===========================
    | |
    | |
    | my pdf file will be here |
    | |
    | |
    | |
    ============================

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: PDF in a table/div/frame

    I don't think so, no. PDF isn't a native format to any browser; you can only open it in a browser thanks to plugins.

  3. #3
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: PDF in a table/div/frame

    most browsers let you open PDF files with a plugin nowadays, so you could simply make an iframe with the PDF file as the source. but, there are a few ways to either generate PDF files from scratch with PHP, or read them.

    after looking around for a little while, I've found plenty of PDF generators but not very many PDF readers. Zend_PDF is a PDF generator/reader that sounds like it would work fine for what you want.

    XPDF is an open source PDF reader. it's an application rather than a PHP-specific plugin, but you could run the pdftotext binary using shell_exec() to capture its output.

    as far as generators go, they may or may not have the ability to import pre-existing PDFs. the ones I found were PDFlib, Haru PDF, FPDF, and TCPDF. FPDI was an add-on for both FPDF and TCPDF, too. you could google any of those names and find some stuff, I'm sure.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width