Hi, 
I've tryed to encrypt signed pdf document through the
following code: 
int permissions = PdfWriter.AllowCopy |
PdfWriter.AllowPrinting | dfWriter.AllowModifyContents
|PdfWriter.AllowScreenReaders |
PdfWriter.AllowModifyAnnotations|PdfWriter.AllowFillIn
| PdfWriter.AllowAssembly
|PdfWriter.AllowDegradedPrinting;
        PdfReader reader = new
PdfReader(fileToEncryptName);
            FileOutputStream fos = new
FileOutputStream(encryptedFileName);
            PdfEncryptor.encrypt(reader, fos, pass,
pass, permissions, PdfWriter.STRENGTH128BITS);
            fos.close();
            reader.close();

so the result was a successfully encrypted document.
But when I decrypted it the signature became invalid.
When I opened the file in Adobe Reader I got the
following error: "Error during signature verification.
 

Unexpected byte range values defining scope of signed
data.
Details: byte range of signature is invalid"
Is there a way not to destroy the document's signature
while I encrypt the document?


 
____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to