__init__ constructor

init

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

def __init__(self):
    ...

init

Initializes a new instance of the BarcodeSignOptions class with text.

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

Example

from groupdocs.signature.options import BarcodeSignOptions

# Create barcode signature options with the desired text
options = BarcodeSignOptions("JohnSmith")

init

Initializes a new instance of the BarcodeSignOptions class with text.

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

Example

from groupdocs.signature.options import BarcodeSignOptions
from groupdocs.signature.domain import BarcodeTypes

# Create barcode signature options with text and type
options = BarcodeSignOptions("JohnSmith", BarcodeTypes.CODE128)

See Also