StampOptions

Overview

StampOptions is a interface in Aspose.PDF FOSS for TypeScript.

Options for stamping text onto a page.

Properties: align, artifact, behind, color, dir, font, and 7 more.

Properties

NameTypeAccessDescription
font: AuthoringFontReadStandard-14 base font (one of the 12 Latin faces) or an embedded font handle from {@link Document.AddFont}.
fontSize: numberReadFont size in points.
color: [number, number, number]ReadFill color as RGB components in 0..1.
rotate: numberReadRotation in degrees, counter-clockwise about (x, y).
opacity: numberReadFill opacity in 0..1.
align: 'left' | 'center' | 'right'ReadWhich point of the baseline (x, y) anchors.
tag: StructElementReadWhen set, wrap this text in a marked-content sequence and attach it to the given structure element (emits /<type> << /MCID n >> BDC … EMC).
artifact: booleanRead@internal Mark this stamp as an /Artifact: content that belongs to no structure element (/Artifact BMC … EMC).
shape: booleanReadEnable/disable complex-text shaping for this call, overriding the font’s default.
dir: 'auto' | 'ltr' | 'rtl'ReadBase paragraph direction for shaping.
script: stringReadOpenType script tag override (default: auto per script itemization).
language: stringReadOpenType language-system tag (default: ‘dflt’).
behind: booleanReadDraw this stamp beneath existing page content instead of on top of it.