Metho,

metho wrote
> Currently we store signed pdf in our database and need to sent encrypted
> version over the net, but encrypting it using PDFReader  and PdfStamper
> seems to break certificates existing(adobe reader says they are not
> valid).
> Is there some workaround for that?

You automatically break existing signatures whenever you encrypt a document.
Signatures sign byte ranges in the file, and these file ranges are relocated
and also otherwise changed upon encryption.

> I also tried to sign those pdfs again during encryption but i end with pdf
> with 2 certificates. The new one which is valid and old one which is
> broken(maybe there is some way to delete this one?)

You can delete the original one completely or you can reuse its visual
representation for a new one.

Regards, Mikel



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Encrypting-signed-pdf-file-tp4660281p4660285.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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

Reply via email to