Show pdf file into browser without Adobe Reader

Dharm Shankar picture Dharm Shankar · Feb 16, 2012 · Viewed 8.6k times · Source

I need to open pdf file into browser without Adobe Reader. Is there any API with php which open PDF files into browser.

Regards

Answer

Quentin picture Quentin · Feb 16, 2012

No.

PHP runs on the server. The only "browser API" it has access to is HTTP.

If you want to render a PDF on the client, then the client needs a PDF renderer. There are JavaScript PDF readers, but I can't comment on their cross-browser support or maturity.