Closed WSPDV closed 9 months ago
This information is available in doc.signatures.first[:Reference].first[:TransformMethod]
, i.e. from the signature reference dictionary of the signature object.
Thank you mas @gettalong that's very helpful. But, not necessarily all PDF document has a TransformMethod. I just read your documentation at
The default is nil.
How about the level DocMDP if has no TransformMethod method (nil value)? is the no DocMDP the same as level 3?
signature_dict = doc.signatures.first
# the sigref have possibility null value
sigref = signature_dict[:Reference]&.find {|ref| ref[:TransformMethod] == :DocMDP }
You are right, there doesn't need to be any signature reference dictionary. So if there isn't, then the document doesn't have a certification signature.
Terima kasih mas @gettalong 🙏🏿
Hi mas @gettalong
Can we get the level DocMDP from the already signed document using
.signatures
?I can get the information on the signature, but I didn't find information about docMDP
Thank you