https://drive.google.com/file/d/1cRgAdjkZNGR2IttjwZkNCxnuNf315QuH/view?usp=sharing
I have been working with the Origami gem to sign PDF's to replicate docusign but more EU compliant. However the gem is really basic and has quite a few errors in it that need corrected. For the most part, while going slow, it has progressed well. After a decent amount of QA there is still a subset of documents that don't work.
https://github.com/gdelugre/origami
The signing works okay. However each subsequent signature / revision invalidates the previous one. However, the previous signature isn't invalid because deleting the later revision will bring the signature back to a valid state.
It is very similar to this article but I don't believe the document has any misformed bytes. https://forums.adobe.com/thread/877635
There is something in the original document causing Adobe reader to make the prior revision invalid. I noticed the spec on "allowed changes" and when I sign other documents it works completely fine so I don't think the problem lays in the revision / signatures I add. I do not know about the certified signatures but I am pretty confident that this does not include any.
For some simple documents that exhibit this behavior, converting it from a table to a stream style document will allow it work. BUT, the document will say that there is 1 misc change added.