By Date: <-- -->
By Thread: <-- -->

How to delete the security of pdf file



Title: foxmail 5.0
Hello,itext-questions:
 
     I have used  "PdfEncryptor.encrypt()" to add security on a pdf file( Name is Security.pdf).
 
/**
     //this is the code i used
       PdfEncryptor.encrypt(reader, new FileOutputStream(output_file),
                                 user_password.getBytes(),
                                 owner_password.getBytes(),
                                 int_permissions,
                                 strength.equals("128"));
 
*/
 
----------------------------------------------------------------------------------------------
     But now, i want recover my operation , delete the security of pdf file(Security.pdf)
 
     Let the Label of "Security Method" be "No Security" . Of cource i know the password of pdf file.
 
 
    How should i do ?
 
 
 
Result should Like this :
 
 
Best regards,

***************************************
* ( DaLian e-Trust Software Co.Ltd.)
*  Name       : Yuan zhiyong
*  T E L      : (+86)411-8475-5058
*  F A X      : (+86)411-8475-5059
*  Mobile     : (+86)13841170396
*  E-Mail     :
yuan.zhiyong (at) e-trust.com.cn
*  Send Time  : 2006-02-08 18:36:27
***************************************

JPEG image

GIF image

GIF image