__init__ constructor

init

Initializes a new instance of the QRCodeSearchOptions class with default values.

def __init__(self):
    ...

Example

from groupdocs.signature import Signature
from groupdocs.signature.options import QrCodeSearchOptions

with Signature("signed.pdf") as signature:
    options = QrCodeSearchOptions()
    result = signature.search([options])
    print(f"Found {len(result.signatures)} QR code signature(s)")

init

Initializes a new instance of the QRCodeSearchOptions class with encode type value.

def __init__(self, encode_type):
    ...
Parameter Type Description
encode_type QrCodeType Specifies QR-Code encode type.

init

Initializes a new instance of the QRCodeSearchOptions class with encode type and text values.

def __init__(self, encode_type, text):
    ...
Parameter Type Description
encode_type QrCodeType Specifies QR-Code encode type.
text str Set text of QR-Code signature.

Example

from groupdocs.signature import Signature
from groupdocs.signature.options import QrCodeSearchOptions

with Signature("signed.pdf") as signature:
    options = QrCodeSearchOptions()
    result = signature.search([options])
    print(f"Found {len(result.signatures)} QR code signature(s)")

See Also