Currently there is an issue with this package that does not allow the signatures to be verified in Adobe after the image objects have been inserted into the document.
In the code after the graphics are inserted into the document the graphics state is restored:
content.operations.push(Operation::new("Q", vec![]));
Commenting out this line will result in a valid signed document with signature images embedded in the document. What is the purpose of this line and is it fine if we remove this?