I am trying to implement signing for pdf documents. As far as I understand - the digest must be calculated for everything except for the signature's /Content entry contents. The contents can be "isolated" by using /ByteRange array. I just wanted to confirm the format of said array. Is it [offset length offset length]? If so, can space for digest signature be longer that signature itself i.e. if signature is 40 bytes in length (sha1), can space for signature be more than 40 bytes?
↧