PdfStamp class abstract

Stamp positioned by the PdfCoordinateTransformer.

The subclass reports the size in measure and draws in paint on a local system with origin at the lower-left corner of the stamp, y axis upwards and unit equal to the display point. The editor takes care of rotating and shifting that system to the right place in the user space, including on pages with /Rotate, a shifted /CropBox or a /UserUnit other than 1.

Implementers

Constructors

PdfStamp({PdfStampAnchor anchor = PdfStampAnchor.bottomRight, double marginX = 24, double marginY = 24, PdfPoint? position, double rotationDegrees = 0, PdfStampLayer layer = PdfStampLayer.overlay})
Configures the anchoring, the margins and the layer of the stamp.
const

Properties

anchor → PdfStampAnchor
Reference corner or edge within the visible area.
final
hashCode → int
The hash code for this object.
no setterinherited
layer → PdfStampLayer
Whether the stamp goes over or under the original content.
final
marginX → double
Horizontal distance between the stamp and the edge, in display points.
final
marginY → double
Vertical distance between the stamp and the edge, in display points.
final
position → PdfPoint?
Explicit upper-left corner, in "top-left" coordinates.
final
rotationDegrees → double
Rotation of the stamp itself, in degrees counter-clockwise on display.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

measure(PdfDocument document) → PdfPoint
Size of the stamp, in display points.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(PdfGraphics canvas, PdfPoint size) → void
Draws the stamp on the local system described in the class documentation.
resolveRect(PdfCoordinateTransformer transformer, PdfPoint size) → PdfTopLeftRect
Area taken up by the stamp, in "top-left" coordinates.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited