To be able to try the samples below you need to install either the Aloaha PDF Signator or the Aloaha PDF Saver.
To convert that document into the sPDF (secure PDF) format the Aloaha PDF SDK contains the functions Stream_SecureFile and Stream_SecureFileSTR.
The URL
http://www.aloaha.com/testdocuments/spdf.asp will on the fly convert form.pdf into a secure format and launch the Aloaha Viewer. The Web Browser will download the secure PDF into the local temp folder and display it in Aloaha. Like this it is not possible to print or modify the document. Obviously it is still possible to grab the document from the temp directory and pass it to a non authorized persion to view it with Aloaha.
A much more secure way is to launch the Aloaha Secure Viewer via command line parameter. For example:
"PDFSaver.exe http://www.aloaha.com/testdocuments/encrypted.pdf" or
"PDFSignator.exe http://www.aloaha.com/testdocuments/encrypted.pdf"
When launched via command line parameter the Webrowser is not involved and the PDF is loaded directly into the computer memory thus avoiding the file in the temp folder. Obviously it is possible to use a client side script in the webpage to automatically launch Aloaha with a command line parameter. If now the link supplied is a one time link the only way of grabbing the document would be a network Sniff. Such a Sniff can be avoided if HTTPS is used!