PlaceOptions

Overview

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

Options for {@link Template.PlaceOn}.

Properties: fit, opacity, rotation.

Properties

NameTypeAccessDescription
fit: 'stretch' | 'contain'Read'stretch' (default) fills rect exactly; 'contain' scales uniformly and centres, preserving the template’s aspect ratio.
opacity: numberReadConstant opacity 0..1 via an /ExtGState, as AddImage takes.
rotation: numberReadRotation in DEGREES counter-clockwise about the rect’s ORIGIN — the point (rect[0], rect[1]) — matching what stamp.ts documents for AddText.