I am working on a PDF which is stored in Oracle Database in BLOB column.
When I am retreiveing the Data as a Byte Array from Database I am converting the Byte Array to Byte Array OutPut Stream and Flushing it to show a PDF in a New Window.
Now I want to add restrictions to the PDF that it cannot be Printed/Copied/Save to a Desktop, I was able to hide the Toolbars from the PDF but the Short-Cut Keys are still working.
Please suggest what can I do to stop this, I am working in Java 1.4.
I have completely the same question like yours, but I still couldn't find a way to resolve it. Here is the related artice link I searched in this site for your reference - it generates a encrypted pdf in the local drive and it works! But in my case, I have to make the pdf output in a popup browser instead of a real pdf in the local drive. When I applied to my code, what I got was an empty page. You can try that and maybe you can figure it out. And if you do, please share with me. Thanks.