Forum Moderators: open
Anybody could help me with my problem?
I want to make a secure viewing for PDF document.
How can I use window.open with no right click, no left click on the opened window and no toolbars? So i want to just make a plain window on browser with a header where PDF document can be securely viewed.
Thanks in advance
AndreJul
The src of this IFRAME would be a CGI script. This script itself would first send "document-type: Application/pdf\n\n". Followed by the contents of the .PDF file itself.
The .PDF file could then be stored in some inaccessible area on your server, thus preventing anyone gaining direct access to it.
The actual code you would need to produce this would depend on what type of server side scripting you have available.
Any solution that simply uses client side scripting would be a totally pointless exercise. Anyone wanting a copy of the .PDF could just view the source of your link, type the URL of the .PDF into the address bar, then use File.. Save..