Viewing PDF in a browser without downloading (something like a gmail attachment)

We use php to create PDF on the server. Could you please help me understand how to provide the user with the opportunity to view PDF on the Internet (something like the Gmail feature)?

Any background document would be very helpful.

enter image description here

In this figure, if I click on the PDF / icon somewhere outside of the two buttons for loading / recycling; I can view pdf file with lighbox effect in background. If I click on Download, pdf will load on the client machine.

Is there any way to achieve this effect?

+4
source share
1 answer

All Articles