Attachment damages signature part 2
问题 I created code that adds an image to an existing pdf document and then signs it, all using PDFBox (see code below). The code nicely adds the image and the signature. However, in some documents, Acrobat Reader complains that "The signature byte range is invalid." The problem seems to be the same as the problem described in this question. The answer to that question describes the problem in more detail: the problem is that my code leaves a mix of cross reference types in the document (streams