• 0

HELP: make asp.net 2.0 open a pdf


Question

This' in asp.net 2.0 c#

Is there a way to code a hyperlink to a pdf that will open it for viewing but the document will then be auto. deleted if it's closed?

Or how to specify the document to be downloaded to a specific path only (ex: the browser' cache) as viewing (not like in OS X if we click on a pdf link it download the file auto. to desktop then view it, and still leave it there on desktop when things' closed, which is annoying if the users just browse through the document but not actually want to save it, unless they "save as.." by themselves).

I believe the user can do this by changing the settings in the browser themselves but is there a way to code this in the site in default (ex: for security purposes etc.)

Thanks!

Link to comment
https://www.neowin.net/forum/topic/554301-help-make-aspnet-20-open-a-pdf/
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Once the file makes to the users computer, all bets are off of what you can do with the file. Not sure if there are any security settings within the PDF file (set when the PDF if created) that can prevent the storage on the users computer.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.