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
| Name | Type | Access | Description |
|---|---|---|---|
StampId | int | Read/Write | Optional identifier embedded as a %StampId content-stream comment when the stamp is applied, so PdfContentEditor.GetStamps / DeleteStampById can find it later. |
ZoomX | double | Read/Write | Horizontal scale factor applied to the stamp (1.0 = original size). |
ZoomY | double | Read/Write | Vertical scale factor applied to the stamp (1.0 = original size). |
XIndent | double | Read/Write | X position on the page. |
YIndent | double | Read/Write | Y position on the page. |
Rotate | Rotation | Read/Write | Rotation (0, 90, 180, 270). |
RotateAngle | double | Read/Write | Arbitrary rotation angle in degrees. |
Opacity | double | Read/Write | Opacity (0.0 = transparent, 1.0 = opaque). |
IsBackground | bool | Read/Write | Whether the stamp is drawn behind page content. |
Background | bool | Read/Write | Alias for IsBackground. |
TopMargin | double | Read/Write | Top margin offset in points. |
BottomMargin | double | Read/Write | Bottom margin offset in points. |
LeftMargin | double | Read/Write | Left margin offset in points. |
RightMargin | double | Read/Write | Right margin offset in points. |
HorizontalAlignment | HorizontalAlignment | Read/Write | Horizontal alignment. |
VerticalAlignment | VerticalAlignment | Read/Write | Vertical alignment. |
OutlineWidth | double | Read/Write | Stroke width of the stamp’s glyph/graphic outline, in points. |
OutlineOpacity | double | Read/Write | Opacity of the outline stroke (0.0 = transparent, 1.0 = opaque). |
Zoom | double | Read/Write | Uniform scale factor. |
Width | double | Read/Write | Width of the stamp box in points - the wrap width of a text stamp, the drawn size of a page stamp. |
Height | double | Read/Write | Height of the stamp box in points. |
Methods
| Signature | Description |
|---|---|
setStampId(id: int) | Sets StampId. |
getStampId() | Gets StampId. |
Put(page: Page) | Apply this stamp to page. |