How to revoke permission to save or copy a PDF file in java
subhasish nag
Ranch Hand
Joined: Apr 25, 2008
Posts: 101
posted
0
I have created a pdf file in java with itext.But i need to make the pdf non-editable.this means i need to restricted the save,copy these options.Any body can help me?
Thanks,<br />Subhasish
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35254
7
posted
0
The following code makes a copy of an existing PDF and applies certain permissions to it. See the PdfWriter class for the various permissions that are possible. [ July 30, 2008: Message edited by: Ulf Dittmer ]
I don't have this error when myDoc.pdf is on my local machine, only when it is on my server. I need help, thank you in advance.
Monica Salvador
Greenhorn
Joined: Feb 24, 2011
Posts: 23
posted
0
I tried this code on my program, but the result is that it asks for a password upon opening. Is there anyway that it opens the file first and then when you try to copy / print it, you will encounter a password confirmation?