Code example:

PdfReader reader = new PdfReader("my_file.pdf", "my_password);
PdfStamper stamp = new PdfStamper(reader, new
FileOutputStream("output.pdf"));
stamp.close();

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Leonard Rosenthol [SMTP:[EMAIL PROTECTED]
> Sent: Monday, June 30, 2003 21:18
> To:   yun wang; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject:      Re: [iText-questions] Password-protected file to None
> password-protected file
> 
> At 03:14 PM 6/30/2003 -0500, yun wang wrote:
> >I have the password. But, I need to do it by iText.
> >I wish that iText PdfReader read the password protected file
> >and then produce the regular file.
> 
>          You can do that with the latest versions of iText, that can now 
> read password protected files and then can rewrite it back out w/o the 
> password.
> 
> 
> Leonard
> 
> --------------------------------------------------------------------------
> -
> Leonard Rosenthol
> <mailto:[EMAIL PROTECTED]>
> Chief Technical Officer                      <http://www.pdfsages.com>
> PDF Sages, Inc.                              215-629-3700 (voice)


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to