Aspose::Pdf::TextStamp class

TextStamp class

Represents textual stamp.

class TextStamp : public Aspose::Pdf::Stamp

Methods

MethodDescription
get_Background() constSets 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.
get_BottomMargin() constGets bottom margin of stamp.
get_Draw() constThis property determines how stamp is drawn on page. If Draw = true stamp is drawn as graphic operators and if draw = false then stamp is drawn as text.
get_Height() overrideDesired height of the stamp on the page.
get_HorizontalAlignment() constGets Horizontal alignment of stamp on the page.
get_Justify()Defines text justification. If this property is set to true, both left and right edges of the text are aligned. Default value: false.
get_LeftMargin() constGets left margin of stamp.
get_MaxRowWidth() constMax row height for WordWrap option.
get_NoCharacterBehavior() constGets mode that defines behavior in case fonts don’t contain requested characters.
get_Opacity() constGets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
get_OutlineOpacity() constGets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
get_OutlineWidth() constGets a value of the stamp outline width. By default the value is 1.0.
get_ReplacementFont() constGets font used for replacing if user font does not contain required character.
get_RightMargin() constGets right margin of stamp.
get_Rotate()Sets 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.
get_RotateAngle()Gets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
get_Scale() constDefines scaling of the text. If this property is set to true and Width value specified, text will be scaled in order to fit to specified width.
get_TextAlignment() constAlignment of the text inside the stamp.
get_TextState() constGets text properties of the stamp. See TextState for details.
get_TopMargin() constGets top margin of stamp.
get_TreatYIndentAsBaseLine() constDefines coordinate origin for placing text. If TreatYIndentAsBaseLine = true (default when Draw = true) YIndent value will be treated as text base line. If TreatYIndentAsBaseLine = false (default when Draw = false) YIndent value will be treated as bottom (descent line) of text.
get_Value()Gets string value which is used as stamp on the page.
get_VerticalAlignment() constGets vertical alignment of stamp on page.
get_Width() overrideDesired width of the stamp on the page.
get_WordWrap() constDefines word wrap. If this property set to true and Width value specified, text will be broken in the several lines to fit into specified width. Default value: false.
get_WordWrapMode() constGets the word wrap mode for text rendering.
get_XIndent() constHorizontal stamp coordinate, starting from the left.
get_YIndent() constVertical stamp coordinate, starting from the bottom.
get_Zoom() constZooming 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.
get_ZoomX() constHorizontal zooming factor of the stamp. Allows to scale stamp horizontally.
get_ZoomY() constVertical zooming factor of the stamp. Allows to scale stamp vertically.
getStampId()Returns stamp ID.
Put(System::SharedPtr<Page>) overrideAdds textual stamp on the page.
set_Background(bool)Sets 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.
set_BottomMargin(double)Sets bottom margin of stamp.
set_Draw(bool)This property determines how stamp is drawn on page. If Draw = true stamp is drawn as graphic operators and if draw = false then stamp is drawn as text.
set_Height(double) overrideDesired height of the stamp on the page.
set_HorizontalAlignment(Aspose::Pdf::HorizontalAlignment)Sets Horizontal alignment of stamp on the page.
set_Justify(bool)Defines text justification. If this property is set to true, both left and right edges of the text are aligned. Default value: false.
set_LeftMargin(double)Sets left margin of stamp.
set_MaxRowWidth(double)Max row height for WordWrap option.
set_NoCharacterBehavior(TextStamp::NoCharacterAction)Sets mode that defines behavior in case fonts don’t contain requested characters.
set_Opacity(double)Sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
set_OutlineOpacity(double)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.
set_OutlineWidth(double)Sets a value of the stamp outline width. By default the value is 1.0.
set_ReplacementFont(System::SharedPtr<Text::Font>)Sets font used for replacing if user font does not contain required character.
set_RightMargin(double)Sets right margin of stamp.
set_Rotate(Rotation)Sets 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.
set_RotateAngle(double)Sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
set_Scale(bool)Defines scaling of the text. If this property is set to true and Width value specified, text will be scaled in order to fit to specified width.
set_TextAlignment(Aspose::Pdf::HorizontalAlignment)Alignment of the text inside the stamp.
set_TopMargin(double)Sets top margin of stamp.
set_TreatYIndentAsBaseLine(bool)Defines coordinate origin for placing text. If TreatYIndentAsBaseLine = true (default when Draw = true) YIndent value will be treated as text base line. If TreatYIndentAsBaseLine = false (default when Draw = false) YIndent value will be treated as bottom (descent line) of text.
set_Value(System::String)Sets string value which is used as stamp on the page.
set_VerticalAlignment(Aspose::Pdf::VerticalAlignment)Sets vertical alignment of stamp on page.
set_Width(double) overrideDesired width of the stamp on the page.
set_WordWrap(bool)Defines word wrap. If this property set to true and Width value specified, text will be broken in the several lines to fit into specified width. Default value: false.
set_WordWrapMode(Aspose::Pdf::Text::TextFormattingOptions::WordWrapMode)Sets the word wrap mode for text rendering.
set_XIndent(double)Horizontal stamp coordinate, starting from the left.
set_YIndent(double)Vertical stamp coordinate, starting from the bottom.
set_Zoom(double)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.
set_ZoomX(double)Horizontal zooming factor of the stamp. Allows to scale stamp horizontally.
set_ZoomY(double)Vertical zooming factor of the stamp. Allows to scale stamp vertically.
setStampId(int32_t)Sets stamp Id.
Stamp()
TextStamp(System::String)Initializes a new instance of the TextStamp class.
TextStamp(System::String, System::SharedPtr<Aspose::Pdf::Text::TextState>)Initializes a new instance of the TextStamp class.
TextStamp(System::SharedPtr<Facades::FormattedText>)Initializes a new instance of the TextStamp class with formattedText object.

See Also