__init__ constructor

init

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

def __init__(self):
    ...

init

Initializes a QR code signature options instance with the specified text.

def __init__(self, text):
    ...
Parameter Type Description
text str Signature text.

Example

from groupdocs.signature.options import QrCodeSignOptions

# Create QR code signature options with the desired text
options = QrCodeSignOptions("Approved by John Smith")

init

Initializes a new instance of the QrCodeSignOptions class with text.

def __init__(self, text, encode_type):
    ...
Parameter Type Description
text str QRCode text.
encode_type QrCodeType QRCode encode type.

Example

from groupdocs.signature.options import QrCodeSignOptions
from groupdocs.signature.domain import QrCodeTypes

options = QrCodeSignOptions(
    "https://www.example.com/verify-document",
    QrCodeTypes.QR
)

See Also