Solved

View and print a pdf but not download the pdf

Posted on 2011-03-22
5
352 Views
Last Modified: 2012-05-11
Is there a way using php to set up a webpage with a link to a pdf document that can be viewed on the page, printed but not downloaded?
0
Comment
Question by:ChampagneGal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 35193432
No, because the PDF reader software is always on the client side.  At best, the PDF file would be in the temp folder and not named nicely and possibly removed when the page is closed but it will be there if it is being viewed on the client machine.

Besides, if they can print it they can print it to a PDF generator which is the same as downloading it so in that sense, the issue is moot.  
0
 

Author Comment

by:ChampagneGal
ID: 35193457
Thanks.  I didn't think so, but just figured I'd ask the experts.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 35193468
You're welcome.

The rule of thumb with the web is "if you put it on a page, I can download it no matter what you try to do to stop me"

The best case scenario is you can make it harder for me to get a hold of what I want, but I can always get it.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 35193792
I agree with Jason.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 35223059
Thanks.  

Just as an aside, the only way you could make a document printable but not downloadable and have it server-side would be to embed it in scribd.com or something like that.

But the logical problem of printing it to a PDF would still apply...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP 5.6 and 7.x 4 41
Session time out quickly. 6 28
How to show popup no matter what a user clicks on navigation wise 10 36
Get data from two MySQL tables 6 27
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question