Call PdfReader.removeUsageRights().
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of dreamboy
> Sent: Monday, May 14, 2007 7:51 PM
> To: [email protected]
> Subject: Re: [iText-questions]
> java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1OctetString
>
>
> I successfully generated the pdf but how to remove the
> following message
> before opening the pdf?
>
> "This document contained certain rights to enable special
> feature in Adobe
> Reader. The document has been changed since it was created
> and these rights
> are no longer valid. Please contact the author for the
> original version of
> this document."
>
> I used this API to generate the PDF.
>
> PdfEncryptor.encrypt(reader, new
> FileOutputStream("C:/file.pdf"), false,
> null,null, PdfWriter.AllowAssembly |
> PdfWriter.AllowCopy
> | PdfWriter.AllowDegradedPrinting |
> PdfWriter.AllowFillIn
> | PdfWriter.AllowModifyAnnotations |
> PdfWriter.AllowModifyContents
> | PdfWriter.AllowPrinting |
> PdfWriter.AllowScreenReaders);
>
>
>
>
>
>
>
>
> Bruno Lowagie (iText) wrote:
> >
> > dreamboy wrote:
> >> Thanks bruno,
> >>
> >> what are the bouncycastle jar files (filename and version)
> required for
> >> IText 2.0.0. I am using jdk1.5.
> >
> > The ones provided on SourceForge will do.
> >
> http://sourceforge.net/project/showfiles.php?group_id=15255&pa
> ckage_id=151860
> > (Look for files with bcprov and bcmail in their name.)
> > But you can also go to the BouncyCastle site and download the jdk15
> > version.
> > br,
> > Bruno
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/