Stamp

Overview

Stamp is a class in Aspose.PDF FOSS for .NET.

Base class for the stamps a Page takes through AddStamp(Stamp).

This class declares 3 methods for Stamp objects in .NET programs. Available methods include: Put, getStampId, setStampId. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Background, BottomMargin, Height, HorizontalAlignment, IsBackground, LeftMargin, and 15 more.

Properties

NameTypeAccessDescription
StampIdintRead/WriteOptional identifier embedded as a %StampId content-stream comment when the stamp is applied, so PdfContentEditor.GetStamps / DeleteStampById can find it later.
ZoomXdoubleRead/WriteHorizontal scale factor applied to the stamp (1.0 = original size).
ZoomYdoubleRead/WriteVertical scale factor applied to the stamp (1.0 = original size).
XIndentdoubleRead/WriteX position on the page.
YIndentdoubleRead/WriteY position on the page.
RotateRotationRead/WriteRotation (0, 90, 180, 270).
RotateAngledoubleRead/WriteArbitrary rotation angle in degrees.
OpacitydoubleRead/WriteOpacity (0.0 = transparent, 1.0 = opaque).
IsBackgroundboolRead/WriteWhether the stamp is drawn behind page content.
BackgroundboolRead/WriteAlias for IsBackground.
TopMargindoubleRead/WriteTop margin offset in points.
BottomMargindoubleRead/WriteBottom margin offset in points.
LeftMargindoubleRead/WriteLeft margin offset in points.
RightMargindoubleRead/WriteRight margin offset in points.
HorizontalAlignmentHorizontalAlignmentRead/WriteHorizontal alignment.
VerticalAlignmentVerticalAlignmentRead/WriteVertical alignment.
OutlineWidthdoubleRead/WriteStroke width of the stamp’s glyph/graphic outline, in points.
OutlineOpacitydoubleRead/WriteOpacity of the outline stroke (0.0 = transparent, 1.0 = opaque).
ZoomdoubleRead/WriteUniform scale factor.
WidthdoubleRead/WriteWidth of the stamp box in points - the wrap width of a text stamp, the drawn size of a page stamp.
HeightdoubleRead/WriteHeight of the stamp box in points.

Methods

SignatureDescription
setStampId(id: int)Sets StampId.
getStampId()Gets StampId.
Put(page: Page)Apply this stamp to page.

See Also

 English