|
I have encrypted PDF file.
with BC1.46 and iText-5.1.3 I decrypt the file successfully. With BC1.47 and iText-5.2.1 HEAD revision i have exception : com.itextpdf.text.exceptions.InvalidPdfException: Bad certificate and key. at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:515) at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:203) I have no touched the code. What could be the problem? Thank you |
|
The move to BC 1.47 still needs testing, it's very recent. Let's hope
it's not something broken in BC and the problem is in iText. Paulo On Wed, Apr 11, 2012 at 3:10 PM, Valentin Ivanov <[hidden email]> wrote: > I have encrypted PDF file. > with BC1.46 and iText-5.1.3 I decrypt the file successfully. > With BC1.47 and iText-5.2.1 HEAD revision i have exception : > > /com.itextpdf.text.exceptions.InvalidPdfException: Bad certificate and key. > at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:515) > at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:203)/ > > I have no touched the code. What could be the problem? > Thank you > > -- > View this message in context: http://itext-general.2136553.n4.nabble.com/PDF-decrypting-with-iText-5-2-1-revision-5117-tp4548957p4548957.html > Sent from the iText - General mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > iText-questions mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > iText(R) is a registered trademark of 1T3XT BVBA. > Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ > Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php |
|
PDF decrypting works fine with BC1.46 and iText-5.2.1 (official release). It seems like the problem is not in iText.
|
|
BC1.47 has renamed some classes and interfaces. That is the source of the
problems. ----- Original Message ----- From: "Valentin Ivanov" <[hidden email]> To: <[hidden email]> Sent: Thursday, April 12, 2012 2:05 PM Subject: Re: [iText-questions] PDF decrypting with iText-5.2.1 revision 5117 PDF decrypting works fine with BC1.46 and iText-5.2.1 (official release). It seems like the problem is not in iText. -- View this message in context: http://itext-general.2136553.n4.nabble.com/PDF-decrypting-with-iText-5-2-1-revision-5117-tp4548957p4551019.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php *********************************************************************************** This e-mail is intended only for the named addressee(s) and may contain confidential and/or privileged information. If you are not the named addressee (or have received this e-mail in error), please notify the sender immediately. The unauthorised use, disclosure, distribution or copying of the contents in this e-mail is prohibited. Thank you. *********************************************************************************** ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php |
|
In reply to this post by Paulo Soares-4
Paulo, Valentin,
Maybe the OP still uses the wrong iText version. iText switched to BC 1.47 not before 5.2.2-SNAPSHOT. He mentions a 5.2.1 HEAD version. Maybe he checked out svnroot/itext/tags/iText_5_2_1 at revision 5117 instead of svnroot/itext/trunk and, thus, actually uses the code designed for BC 1.46. OTOH the exception says "Bad certificate and key". Maybe BC became a bit stricter concerning input formats (it at least used to be very lax concerning malformed data) and, therefore, now rejects the file. Valentin, maybe you could provide an example PDF for this issue? Regards, Michael |
|
In reply to this post by Kwan Hon Luen
yes, but then should not the exception show the missing BC "thing" in the stack trace? As Paulo says BC1.47 is recent version and need testing.
|
| Powered by Nabble | Edit this page |
