Stamp

Overview

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

Base class for stamps that can be applied to PDF pages.

This class provides 1 method for working with Stamp objects in .NET programs. Available methods include: setStampId. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Background, BottomMargin, HorizontalAlignment, IsBackground, LeftMargin, Opacity, and 11 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.

Methods

SignatureDescription
setStampId(id: int)Sets StampId.

See Also

 English