ImageSignature class

ImageSignature class

The class contains image signature properties.

The ImageSignature type exposes the following members:

Constructors

Constructor Description
init Initializes an ImageSignature object with a unique signature identifier obtained from the Sign or Search method of the GroupDocs.Signature class.

Methods

Method Description
clone Clone ImageSignature instance.
equals Determines whether the specified signature is equal to this instance.
equals_object
get_hash_code Returns the hash code for the signature.

Properties

Property Description
content The binary image data of the signature, in the format specified by ImageSignature.Format.
format The format of the signature image.
size The size in bytes of the signature image.
created_on The signature creation date. (inherited from BaseSignature)
deleted The flag indicating whether this signature was deleted from the document. (inherited from BaseSignature)
height The height of the signature. (inherited from BaseSignature)
is_signature The flag indicating whether this component represents a signature (True) or document content (False). (inherited from BaseSignature)
left The left position of the signature. (inherited from BaseSignature)
modified_on The signature modification date. (inherited from BaseSignature)
page_number The page number where the signature was found. (inherited from BaseSignature)
signature_id The unique identifier of the signature, used to modify the signature in the document via update or delete operations. (inherited from BaseSignature)
signature_type The type of signature. (inherited from BaseSignature)
top The top position of the signature. (inherited from BaseSignature)
width The width of the signature. (inherited from BaseSignature)

Example

from groupdocs.signature import Signature
from groupdocs.signature.options import ImageSearchOptions

with Signature("signed.pdf") as signature:
    result = signature.search([ImageSearchOptions()])
    for image in result.signatures:
        print(
            f"Page {image.page_number}: {image.size} bytes at ({image.left}, {image.top}), "
            f"size {image.width}x{image.height}"
        )

See Also