aspose file tools
The moose likes Java in General and the fly likes How to revoke permission to save or copy a PDF file in java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to revoke permission to save or copy a PDF file in java" Watch "How to revoke permission to save or copy a PDF file in java" New topic
Author

How to revoke permission to save or copy a PDF file in java

subhasish nag
Ranch Hand

Joined: Apr 25, 2008
Posts: 101
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
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 ]

Android appsImageJ pluginsJava web charts
Ethan Hunt
Greenhorn

Joined: Sep 30, 2008
Posts: 1
Hello,

I'm use iText and this code :

But I have this exception :

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
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?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to revoke permission to save or copy a PDF file in java
 
Similar Threads
How to revoke permission to save or copy a PDF file in java
Saving a PDF automatically
working with pdf.... in java j2ee
Converting image into pdf file and displaying the pdf file.
Save a pdf or any file to client machine from server