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&package_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
>
> -------------------------------------------------------------------------
> 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/
>
>
--
View this message in context:
http://www.nabble.com/java.lang.NoClassDefFoundError%3A-org-bouncycastle-asn1-ASN1OctetString-tf3729371.html#a10609660
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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/