Forum Moderators: open

Message Too Old, No Replies

Ask-pop up Window -Revised

no right click and left click, no toolbars, secure documentation view

         

AndreJul

7:49 am on Jun 9, 2006 (gmt 0)

10+ Year Member



Hi guys,

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

texmex

7:27 pm on Jun 11, 2006 (gmt 0)

10+ Year Member



I assume that you want to prevent your users downloading the PDF document. Probably the most secure method would be for your link to open an HTML document. This would include a javascript handler to intercept the mouse clicks. It would also include an IFRAME tag in the BODY that occupies 100% of the browsers window.

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..