Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-05-2008, 07:17 AM
Member
 
Join Date: Oct 2008
Posts: 45
priyanka.dandekar is on a distinguished road
How to revoke permission to save or copy a PDF file in java
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?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-05-2008, 07:18 AM
Member
 
Join Date: Oct 2008
Location: US
Posts: 40
kzvi.kzvi.1 is on a distinguished road
Your questions is not clear....can u give some code snippet?
__________________
Have fun....

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 10-05-2008, 07:20 AM
Member
 
Join Date: Oct 2008
Posts: 45
priyanka.dandekar is on a distinguished road
I dont have the code, that is what I am looking for...do u know some frameworks or existing code which I can use?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 10-05-2008, 07:21 AM
Member
 
Join Date: Oct 2008
Location: US
Posts: 40
kzvi.kzvi.1 is on a distinguished road
well so u r looking for something readymade....I think u need to use google instead...this forum should be able to answer specific questions....I think that way
__________________
Have fun....

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 10-05-2008, 07:22 AM
Member
 
Join Date: Oct 2008
Posts: 45
priyanka.dandekar is on a distinguished road
thanks for ur suggestion...there must be other people in forum who must have faced similar prob? anybody there???
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 10-05-2008, 07:23 AM
Member
 
Join Date: Oct 2008
Location: US
Posts: 40
kzvi.kzvi.1 is on a distinguished road
let me do some googling for u....it would be easier
__________________
Have fun....

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 10-05-2008, 07:24 AM
Member
 
Join Date: Oct 2008
Posts: 45
priyanka.dandekar is on a distinguished road
thanks .... let me know by tomorrow...
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 10-05-2008, 07:24 AM
Member
 
Join Date: Oct 2008
Location: US
Posts: 40
kzvi.kzvi.1 is on a distinguished road
u r giving me timelines like a manager...:0)
__________________
Have fun....

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 10-05-2008, 09:52 AM
Member
 
Join Date: Oct 2008
Posts: 45
priyanka.dandekar is on a distinguished road
thats when people take it seriously....
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 10-05-2008, 09:53 AM
Member
 
Join Date: Oct 2008
Location: US
Posts: 40
kzvi.kzvi.1 is on a distinguished road
whts so serious about this...I am just searching...which u cant...
__________________
Have fun....

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 10-05-2008, 09:54 AM
Member
 
Join Date: Oct 2008
Location: US
Posts: 40
kzvi.kzvi.1 is on a distinguished road
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.


PdfReader reader = new PdfReader("my-old-file.pdf");
PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("my-new-file.pdf"));
stamper.setEncryption("my-owner-password".getBytes(), "my-user-password".getBytes(),
PdfWriter.AllowPrinting | PdfWriter.AllowCopy, PdfWriter.STRENGTH40BITS);
stamper.close();
__________________
Have fun....

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #12 (permalink)  
Old 10-05-2008, 08:06 PM
Member
 
Join Date: Oct 2008
Posts: 45
priyanka.dandekar is on a distinguished road
thanks this works...
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy a .swf file from server side to client using signed applet Imoracle Java Applets 2 10-05-2008 08:13 PM
java.net.SocketException: Permission denied: connect ToddT Java Applets 2 10-03-2008 02:20 PM
java file copy hknyo New To Java 1 06-12-2008 06:42 AM
copy image/imageicon into a file on disk archanajathan Advanced Java 2 11-22-2007 08:21 AM
java.net.SocketException: Permission denied: listen failed vitaliy Networking 2 07-09-2007 01:20 PM


All times are GMT +3. The time now is 09:32 AM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org