--- Begin Message ---
That's great !!!! It's working......

Just another help.
This encryption works on an existing PDF file.
How can we use this with Servlet/JSP where output stream is used,  not  physical file. 
Can we encrypt output streams  ?

Best regards,
Santosh Kumar

>>> Paulo Soares <[EMAIL PROTECTED]> 10/14/03 04:03PM >>>
java -cp itext.jar com.lowagie.tools.encrypt_pdf Chap0101.pdf encrypted.pdf
"" "" 00000000 128

> -----Original Message-----
> From: AI Click [SMTP:[EMAIL PROTECTED] 
> Sent: Tuesday, October 14, 2003 11:19
> To:   [EMAIL PROTECTED] 
> Subject:      RE: [iText-questions] encrypting a pdf file
> 
> No of arguments in com.lowagie.tools.encrypt_pdf , cannot be less than 6.
> So how to give empty user ????
> 
> 
> java -cp itext.jar com.lowagie.tools.encrypt_pdf Chap0101.pdf
> > > encrypted.pdf user master 00000000 128
> 
> >>> Paulo Soares <[EMAIL PROTECTED]> 10/14/03 03:18PM >>>
> Use an empty user and owner password.
> 
> Best Regards,
> Paulo Soares
> 
> > -----Original Message-----
> > From:       AI Click [SMTP:[EMAIL PROTECTED] 
> > Sent:       Tuesday, October 14, 2003 5:21
> > To: [EMAIL PROTECTED] 
> > Subject:    RE: [iText-questions] encrypting a pdf file
> > 
> > Thanks for your quick response.
> > Kindly specify how to use PDF encrypter without the owner's password.
> > 
> > When reader is asking password, i'm pressing "cancel", then the document
> > is not displayed.
> > 
> > Rgds,
> > Santosh Kumar
> > 
> > >>> Paulo Soares <[EMAIL PROTECTED]> 10/13/03 06:50PM >>>
> > If you give the owner password you can do everything.
> > 
> > Best Regards,
> > Paulo Soares
> > 
> > > -----Original Message-----
> > > From:     AI Click [SMTP:[EMAIL PROTECTED] 
> > > Sent:     Monday, October 13, 2003 12:40
> > > To:       [EMAIL PROTECTED] 
> > > Subject:  [iText-questions] encrypting a pdf file
> > > 
> > > Kindly refer to your document for following  option.
> > > 
> > > I find that this option is not working.
> > > Refer to attached files.
> > > Original file if EJBar.... and encrpyted file is abc.pdf with
> permission
> > > 00000000, password "santosh"
> > > But still copy print is allowed.
> > > 
> > > Kindly give feedback.
> > > 
> > > Rgds,
> > > Santosh
> > > _____________________________________________
> > > com.lowagie.tools.encrypt_pdf
> > > This class can be used from the commandline to encrypt a PDF file.
> > > arguments: input_file output_file user_password owner_password
> > permissions
> > > 128|40
> > > permissions is 8 digit long 0 or 1. Each digit has a particular
> security
> > > function: 
> > > AllowPrinting 
> > > AllowModifyContents 
> > > AllowCopy 
> > > AllowModifyAnnotations 
> > > AllowFillIn (128 bit only) 
> > > AllowScreenReaders (128 bit only) 
> > > AllowAssembly (128 bit only) 
> > > AllowDegradedPrinting (128 bit only) 
> > > Example permissions to copy and print would be: 10100000
> > > Command line example:
> > > java -cp itext.jar com.lowagie.tools.encrypt_pdf Chap0101.pdf
> > > encrypted.pdf user master 00000000 128
> > > You will only be able to open the file encrypted.pdf if you know the
> > > password (= user). You won't be able to print the file, modify the
> > > contents, copy parts of it,... 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > <<<<AIRINDIA>>>> << File: EJBArchitectures.pdf >>  << File: abc.pdf >>
> 
> > 
> 




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

--- End Message ---

Reply via email to