Hi!

I extracted that first signed revision now. Unfortunately the Reader here once 
more is quite lax when confronted with broken PDF documents. IMHO it should at 
least tell the user that the PDF is broken...

Regards,   Mikel.

-----Ursprüngliche Nachricht-----
Von: Michael Klink [mailto:m...@wir-sind-cool.org] 
Gesendet: Dienstag, 30. Dezember 2008 20:49
An: itext-questions@lists.sourceforge.net
Betreff: Re: [iText-questions] itext invalidates first signature. Why ?

Hi HT,

I looked at your PDF; Acrobat and the Reader are right, the signature byte 
range _is_ invalid. It is invalid in the sense that the part of the PDF file 
from the beginning of the file until the end of the last byte range is not a 
proper PDF file and therefore not a valid document revision to be signed.

Look at it, you'll find that it's actually the signature dictionary (5 0 obj) 
itself which is located at an invalid position betwenn the trailer dictionary 
and the startxref making this revision invalid.

>>>>>>>>>>>>>>>
trailer
 <<
/Root 19 0 R
/ID [<9d9bc8f4766bc3c0cabfe0a7409eb782><9d9bc8f4766bc3c0cabfe0a7409eb782> ] 
/Info 20 0 R
/Size 22
>>
5 0 obj 
 <<
[...]
>>
endobj
startxref
000000003615
%%EOF

31 0 obj
<<<<<<<<<<<<<<<

Thus you simply have to repair the software that creates the first signature.

Best regards,   Michael. 

-----Ursprüngliche Nachricht-----
Von: HidekiT [mailto:hideki.tih...@gmail.com] 
Gesendet: Dienstag, 30. Dezember 2008 15:33
An: itext-questions@lists.sourceforge.net
Betreff: Re: [iText-questions] itext invalidates first signature. Why ?


Hi All,

if someone could give us some advice we would be very gratefull.

We really don't see the solution to this problem.

If someone could look at the pdf attached and try to find out what goes
wrong ?

We really checked all code many times but now we are desparate.

(Open the doc and click on the grey signature to see the errormessage). The
byteranges are OK so it must be something else...

Thanks so much already ...

HT



HidekiT wrote:
> 
> Hi,
> 
> we get signed PDF documents made with 3rd party software we need to add
> additional signature with iText.
> 
> Problem is that the 1st signature gets invalid when 2nd is added. The
> error is:
> 
> Error during signature verification.  
> Unexpected byte range values defining scope of signed data.
> Details: The signature byte range is invalid
> 
> We don't understand why this happens ? When we open the original document
> (with only 1st signature) no error is given so why is this invalidated
> with iText when new signature is added ?
> 
> I attach the file with the 2 signatures (only 10 kb) so if someone can
> tell us what the problem is we might solve it.
> 
> Any help much appreciated.

>  http://www.nabble.com/file/p21191679/Example_invalid-first-signature.pdf
> Example_invalid-first-signature.pdf 

http://www.nabble.com/file/p21217894/Example_invalid-first-signature.pdf
Example_invalid-first-signature.pdf 

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger

Attachment: Example_invalid-first-signature.001.pdf
Description: Adobe PDF document

------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to