__init__ constructor

init

Initializes a new instance of the Padding class with zero values.

def __init__(self):
    ...

Example

from groupdocs.signature.domain import Padding

# Create a padding object with default (zero) values
default_padding = Padding()

init

Initializes a new instance of the Padding class using the supplied padding size for all edges.

def __init__(self, all):
    ...
Parameter Type Description
all int The number of measure units to be used for padding for all edges.

Example

# Uniform padding of 5 units on all sides
margin = Padding(5)

init

Initializes a new instance of the Padding class using the supplied padding sizes.

def __init__(self, left, right, top, bottom):
    ...
Parameter Type Description
left int The left padding size.
right int The right padding size.
top int The top padding size.
bottom int The bottom padding size.

Example

from groupdocs.signature.domain import Padding

# Create a padding with right and bottom offsets
margin = Padding(right=40, bottom=60)

See Also