suju Posted March 5, 2015 Share Posted March 5, 2015 I want to display pdf files in the website. I want to display it in such a way that the users could only view it. But they should not be able to download or take a print out of it. Quote Link to comment https://forums.phpfreaks.com/topic/295118-display-pdf-in-website/ Share on other sites More sharing options...
cyberRobot Posted March 5, 2015 Share Posted March 5, 2015 Have you considered using a service like Issuu (http://issuu.com/). I know they have an option to prevent direct downloads. I'm not sure about printing though. For what it's worth: someone determined enough to get a copy of the PDF will likely find a way. Quote Link to comment https://forums.phpfreaks.com/topic/295118-display-pdf-in-website/#findComment-1507634 Share on other sites More sharing options...
suju Posted March 5, 2015 Author Share Posted March 5, 2015 (edited) I mean I want to display pdf files in the webpage using PHP. When I am displaying, the download and print option are coming. I want to hide these options. Or I want to know is there any other solution for this.\ This is the way I tried. But it is working only in the internet explorer. <object data="test.pdf#toolbar=0&navpanes=0&scrollbar=0" type="application/pdf" style="width:100%; height:100%" > <PARAM NAME="SRC" VALUE="test.pdf#toolbar=0&navpanes=0&scrollbar=0"> <embed src="test.pdf#toolbar=0&navpanes=0&scrollbar=0" type="application/pdf" /> </object> Edited March 5, 2015 by suju Quote Link to comment https://forums.phpfreaks.com/topic/295118-display-pdf-in-website/#findComment-1507642 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.