PHP to view PDF on a web page and disable user to download

I am going to write a site that allows users to view pdf files, but I do not want them to save the files on their own hard drive due to copy rights. I am learning how to view it using PHP, but I do not know how to disconnect the user so as not to upload files.

Actually, I want to use JavaScript to disable this action, but I get suggestions from other people not to do this because it annoys the user.

Therefore, any suggestion or help would be greatly appreciated.

+3
source share
5 answers

Method 01

Implementing the Use of Google Books

<iframe frameborder="0" scrolling="no" style="border:0px" src="https://books.google.com.kh/books?id=e5MkzETNcsgC&lpg=PP1&dq=typography&pg=PA11&output=embed" width="500" height=500>
</iframe>

enter image description here

Embed, . . Google dosc , Save to Drive . . Google .

02

02

Google

pdf ( )

03

05

. Embed src.

: 01 02

+1

CSS opacity: 1.0 <div>, ...

pdf <object> <iframe>, z-index pdf. css opacity: 1.0.

, , , <div>!!!!

, ! , , .

+4

, , . , . : PDF . / PDF JPEG Photoshop.

+1

, . , . iFrame PDF , Google. :

 <iframe src="http://docs.google.com/gview?url=http://www.tutorialspoint.com/php/php_tutorial.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0">
</iframe>

url=http://www.tutorialspoint.com/php/php_tutorial.pdf URL-, PDF .

+1

Try the following:

<iframe  src="test1.pdf" scrolling="no" frameborder="0" height="100%" width="100%" style="position:absolute; clip:rect (190px,1100px,800px,250px);">

0
source

All Articles