Hello!
Me again ;-)
I'm using a part from your example for decryption:
// . . .
try
{
System.out.println("Reading " + args[INPUT_FILE]);
PdfReader reader = new PdfReader(args[INPUT_FILE], args[OWNER_PASSWORD].getBytes());
System.out.println("Writing " + args[OUTPUT_FILE]);
PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(args[OUTPUT_FILE]));
stamper.close();
System.out.println("Done.");
return;
}
catch (Exception e)
{
e.printStackTrace();
return;
}
// . . .
Decrypting "normal" documents works fine but i've two samples (1.9 mb and over 1000 pages / 13 mb and over 800 pages). When i want to decrypt these files i always get an io-error like this:
java.io.IOException at
gnu.java.nio.channels.FileChannelImpl.mapImpl(...)
at com.lowagie.text.pdf.MappedRandomAccessFile.<init>(...)
at
com.lowagie.text.pdf.PdfReader.getStreamBytesRaw(...)
The resulting files are not complete and unreadable.
Can you imagine where my problem is (one is my bad java-knowledge ;-)
Thanks a lot in advance.
Best regards,
Ingo
--
This message was sent on behalf of ingo.schmoekel@(protected)
http://www.opensubscriber.com/messages/itext-questions@(protected)
-------------------------------------------------------------------------
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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/