Inheritance: java.lang.Object, com.aspose.pdf.Stamp

public abstract class Stamp extends Object

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

Constructors

ConstructorDescription
Stamp

Methods

MethodDescription
getBottomMarginGets bottom margin of stamp.
getHeightGets desired height of the stamp on the page.
getHorizontalAlignmentGets horizontal alignment of stamp on the page.
getLeftMarginGets left margin of stamp.
getOpacityGets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
getOutlineOpacityGets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
getOutlineWidthGets a value of the stamp outline width. By default the value is 1.0.
getRightMarginGets right margin of stamp.
getRotateGets the rotation of stamp content according {@code 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.
getRotateAngleGets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
getStampIdGets stamp ID.
getTopMarginGet top margin of stamp.
getVerticalAlignmentGets vertical alignment of stamp on page.
getWidthGets desired width of the stamp on the page.
getXIndentGet horizontal stamp coordinate, starting from the left.
getYIndentGet vertical stamp coordinate, starting from the bottom.
getZoomGets zooming 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.
getZoomXGets horizontal zooming factor of the stamp. Allows to scale stamp horizontally.
getZoomYGets vertical zooming factor of the stamp. Allows to scale stamp vertically.
isBackgroundGets 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.
putAdds stamp on the page.
setBackgroundSets 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 default, the value is false, the stamp content is layed at the top.
setBottomMarginSets bottom margin of stamp.
setHeightSets desired height of the stamp on the page.
setHorizontalAlignmentSets Horizontal alignment of stamp on the page.
setLeftMarginSets left margin of stamp.
setOpacitySets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
setOutlineOpacitySets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
setOutlineWidthSets a value of the stamp outline width. By default the value is 1.0.
setRightMarginSets right margin of stamp.
setRotateSets the rotation of stamp content according {@code 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.
setRotateAngleSets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
setStampIdSets stamp Id.
setTopMarginSets top margin of stamp.
setVerticalAlignmentSets vertical alignment of stamp on page.
setWidthSets desired width of the stamp on the page.
setXIndentSet horizontal stamp coordinate, starting from the left.
setYIndentSet vertical stamp coordinate, starting from the bottom.
setZoomGets zooming 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.
setZoomXSets horizontal zooming factor of the stamp. Allows to scale stamp horizontally.
setZoomYSets vertical zooming factor of the stamp. Allows to scale stamp vertically.

Stamp

public Stamp()

getBottomMargin

public double getBottomMargin()

Gets bottom margin of stamp.

Returns: double value

getHeight

public double getHeight()

Gets desired height of the stamp on the page.

Returns: double value

getHorizontalAlignment

public HorizontalAlignment getHorizontalAlignment()

Gets horizontal alignment of stamp on the page.

Returns: HorizontalAlignment value @see HorizontalAlignment

getLeftMargin

public double getLeftMargin()

Gets left margin of stamp.

Returns: double value

getOpacity

public double getOpacity()

Gets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.

Returns: double value

getOutlineOpacity

public double getOutlineOpacity()

Gets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0. By default the value is 1.0.

Returns: double value

getOutlineWidth

public double getOutlineWidth()

Gets a value of the stamp outline width. By default the value is 1.0.

Returns: double value

getRightMargin

public double getRightMargin()

Gets right margin of stamp.

Returns: double value

getRotate

public Rotation getRotate()

Gets the rotation of stamp content according {@code 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.

Returns: Rotation value @see Rotation

getRotateAngle

public double getRotateAngle()

Gets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.

Returns: double value

getStampId

public int getStampId()

Gets stamp ID.

Returns: Identifier of the stamp.

getTopMargin

public double getTopMargin()

Get top margin of stamp.

Returns: double value

getVerticalAlignment

public VerticalAlignment getVerticalAlignment()

Gets vertical alignment of stamp on page.

Returns: VerticalAlignment value @see VerticalAlignment

getWidth

public double getWidth()

Gets desired width of the stamp on the page.

Returns: double value

getXIndent

public double getXIndent()

Get horizontal stamp coordinate, starting from the left.

Returns: double value

getYIndent

public double getYIndent()

Get vertical stamp coordinate, starting from the bottom.

Returns: double value

getZoom

public double getZoom()

Gets zooming 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.

Returns: double value

getZoomX

public double getZoomX()

Gets horizontal zooming factor of the stamp. Allows to scale stamp horizontally.

Returns: double value

getZoomY

public double getZoomY()

Gets vertical zooming factor of the stamp. Allows to scale stamp vertically.

Returns: double value

isBackground

public boolean isBackground()

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.

Returns: boolean value

put

Adds stamp on the page.

setBackground

public void setBackground(boolean value)

Sets 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 default, the value is false, the stamp content is layed at the top.

Parameters:

ParameterTypeDescription
valueboolean value

setBottomMargin

public void setBottomMargin(double value)

Sets bottom margin of stamp.

Parameters:

ParameterTypeDescription
valuedouble value

setHeight

public void setHeight(double value)

Sets desired height of the stamp on the page.

Parameters:

ParameterTypeDescription
valuedouble value

setHorizontalAlignment

Sets Horizontal alignment of stamp on the page.

setLeftMargin

public void setLeftMargin(double value)

Sets left margin of stamp.

Parameters:

ParameterTypeDescription
valuedouble value

setOpacity

public void setOpacity(double value)

Sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.

Parameters:

ParameterTypeDescription
valuedouble value

setOutlineOpacity

public void setOutlineOpacity(double value)

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.

Parameters:

ParameterTypeDescription
valuedouble value

setOutlineWidth

public void setOutlineWidth(double value)

Sets a value of the stamp outline width. By default the value is 1.0.

Parameters:

ParameterTypeDescription
valuedouble value

setRightMargin

public void setRightMargin(double value)

Sets right margin of stamp.

Parameters:

ParameterTypeDescription
valuedouble value

setRotate

Sets the rotation of stamp content according {@code 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.

setRotateAngle

public void setRotateAngle(double value)

Sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.

Parameters:

ParameterTypeDescription
valuerotate angle

setStampId

public void setStampId(int value)

Sets stamp Id.

Parameters:

ParameterTypeDescription
valueNew value of Stamp ID.

setTopMargin

public void setTopMargin(double value)

Sets top margin of stamp.

Parameters:

ParameterTypeDescription
valuedouble value

setVerticalAlignment

Sets vertical alignment of stamp on page.

setWidth

public void setWidth(double value)

Sets desired width of the stamp on the page.

Parameters:

ParameterTypeDescription
valuedouble value

setXIndent

public void setXIndent(double value)

Set horizontal stamp coordinate, starting from the left.

Parameters:

ParameterTypeDescription
valuedouble value

setYIndent

public void setYIndent(double value)

Set vertical stamp coordinate, starting from the bottom.

Parameters:

ParameterTypeDescription
valuedouble value

setZoom

public void setZoom(double value)

Gets zooming 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.

Parameters:

ParameterTypeDescription
valuedouble value

setZoomX

public void setZoomX(double value)

Sets horizontal zooming factor of the stamp. Allows to scale stamp horizontally.

Parameters:

ParameterTypeDescription
valuedouble value

setZoomY

public void setZoomY(double value)

Sets vertical zooming factor of the stamp. Allows to scale stamp vertically.

Parameters:

ParameterTypeDescription
valuedouble value