Re: [iText-questions] Problem with preClose function and exclusion hashmap

2011-10-14 Thread mkl
twain, twain wrote: > But what do you mean with "document appear different"? If I remove an > excluded(from hash computation) pdf dictionary entry the document doesn' > appear more different than if I remove an unsigned attr. > > Pdf dictionary entry doesn't change the "appearance" of a pdf(inte

Re: [iText-questions] Problem with preClose function and exclusion hashmap

2011-10-14 Thread twain
Thanks, I'll use unsigned attrs. But what do you mean with "document appear different"? If I remove an excluded(from hash computation) pdf dictionary entry the document doesn' appear more different than if I remove an unsigned attr. Pdf dictionary entry doesn't change the "appearance" of a pd

Re: [iText-questions] Problem with preClose function and exclusion hashmap

2011-10-14 Thread mkl
twain, twain wrote: > so iText excludes the new entry but Adobe Reader doesn't accept this. > Right? Right. Actually I have not tested whether iText properly excludes your additional exclusion range but Adobe Reader definitively does not accept signed ranges with exclusions other than the signat

Re: [iText-questions] Problem with preClose function and exclusion hashmap

2011-10-14 Thread twain
Thanks mkl, so iText excludes the new entry but Adobe Reader doesn't accept this. Right? Just a consideration. Unsigned attributes are "unsigned" :-). So if someone is skilled enough to remove some data from my "excluded" pdf portion, he will also succeeded to eliminate an unsigned attribute.

Re: [iText-questions] Problem with preClose function and exclusion hashmap

2011-10-14 Thread mkl
twain, twain wrote: > Now I need to add a new entry to the exclusions HashMap, because I need to > insert new data excluded from hash computation. > > But if I try to do: > > [...] > > I obtain a pdf that cause a problem in Adobe Reader about > SigDict/ByteRange value. > > [...] > > Where am

[iText-questions] Problem with preClose function and exclusion hashmap

2011-10-13 Thread twain
Hi, I've already used iText to obtain signed pdf with external signature with code like this: /PdfReader pdfReader = new PdfReader("mypdf"); PdfStamper pdfStamper = PdfStamper.createSignature(pdfReader, myByteArrayOutputStream, '\0', null, true); PdfSignatureAppearance pdfSigApp