Stamp

Stamp class

An abstract class for various kinds of stamps which come as descendants.

The Stamp type exposes the following members:

Properties

NameDescription
backgroundSets or gets a bool value that indicates the content is stamped as background.
If the value is true, the stamp content is layed at the bottom.
By defalt, the value is false, the stamp content is layed at the top.
opacityGets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0.
By default the value is 1.0.
outline_opacityGets or sets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0.
By default the value is 1.0.
outline_widthGets or sets a value of the stamp outline width.
By default the value is 1.0.
rotateSets or gets the rotation of stamp content according Rotation values.
Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees).
To set arbitrary angle use RotateAngle property.
If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
x_indentHorizontal stamp coordinate, starting from the left.
y_indentVertical stamp coordinate, starting from the bottom.
horizontal_alignmentGets or sets Horizontal alignment of stamp on the page.
vertical_alignmentGets or sets vertical alignment of stamp on page.
left_marginGets or sets left margin of stamp.
right_marginGets or sets right margin of stamp.
bottom_marginGets or sets bottom margin of stamp.
top_marginGets or sets top margin of stamp.
zoom_xHorizontal zooming factor of the stamp. Allows to scale stamp horizontally.
widthDesired width of the stamp on the page.
heightDesired height of the stamp on the page.
zoom_yVertical zooming factor of the stamp. Allows to scale stamp vertically.
zoomZooming factor of the stamp. Allows to scale stamp.
Please note that pair of properties ZoomX and ZoomY allows to set zoom factor for every axe separately.
Setting of this property changes both ZoomX and ZoomY properties.
If ZoomX and ZoomY are different then Zoom property returns ZoomX value.
rotate_angleGets or sets rotate angle of stamp in degrees.
This property allows to set arbitrary rotate angle.

Methods

NameDescription
put(page)Adds stamp on the page.
set_stamp_id(value)Sets stamp Id.
get_stamp_id()Returns stamp ID.

See Also