Still got a problems !!
The size of : exc.put(PdfName.CONTENTS, new Integer(115010)); varies depend
of the signature and the document contents ... here we got 115010 .. .but
this number change when the document change ... and sometimes it not work on
the current documents !!!
There is many ways that I can found the size of the documents via calcul or
something ??
Thx again,
Chris.
java-chris wrote:
>
>
> Solve my problems by put the value
>
> dic.put(PdfName.FILTER, new PdfName("Adobe.PPKLite"));
>
> To Remplace
>
> dic.put(PdfName.FILTER, new PdfName("SAFE.PPKSF"));
>
> And now this is woking great !!!
> Think I got it !!
> Thx for your patience ;)
>
>
> java-chris wrote:
>>
>> Hi Paulo ,
>> The arrayIndexOutOfBOunds was solve by changing the value of the out[]
>> variable to sg.length.
>>
>>
>> byte sg[] = pk7.getEncodedPKCS7(hash, cal);
>> byte out[] = new byte[sg.length];
>>
>> Now I've got this
>>
>> Exception in thread "main" java.lang.IllegalArgumentException: The key
>> /Contents is too big. Is 115882, reserved 9474
>>
>> The problems is at this level :
>>
>> exc.put(PdfName.CONTENTS, new Integer(0x2502));
>>
>> If I Crank up the value of the integer as 115882, everything compile and
>> run .. but the result pdf's signature just dont work.
>>
>> Adobe Reader tell me that : SigDict /Contents have illegal data.
>>
>> Im searching a little before replying but now im screwed, the exemple
>> should work ?
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Embeded-CRL-not-recognize-by-Adobe-tp25650913p25669397.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/