6

I want to open PDF file with PHP. Don't want to use Flash. Like google doc viewer. I just want to open PDF file. Can I do with PHP ?

saturngod
  • 24,649
  • 17
  • 62
  • 87
  • are you opening it just to display it in a site/web app or are you trying to read text from the PDF for other purposes? – nategood Jan 08 '10 at 04:56
  • 4
    If you just want to open up a PDF file with php, there are a set of PDF functions (http://php.net/manual/en/book.pdf.php). – Jay Zeng Jan 08 '10 at 04:57
  • I want to get some text from PDF. If PHP can do like google doc viewer, I want to do. – saturngod Jan 08 '10 at 09:07

2 Answers2

5

PHP cannot natively open and display a PDF file to the browser. In most cases you want to just send the file to the browser and allow the Adobe Reader to open and display the file. However, if you are looking to pull data out of the PDF itself, then the PDF function built-into PHP may be of some help.

http://php.net/manual/en/book.pdf.php

TehDrew
  • 76
  • 1
2

You can't BUT You can make one with PHP

making a previews of each page like google reader

this links may help you How do I convert a PDF document to a preview image in PHP?

Community
  • 1
  • 1
ucefkh
  • 2,509
  • 2
  • 22
  • 18