PdfTextStamp class
Single-line text stamp.
Constructors
- PdfTextStamp({required String text, PdfFont? font, double fontSize = 10, PdfColor color = PdfColors.black, PdfColor? background, PdfColor? borderColor, double borderWidth = 0.5, double padding = 0, PdfStampAnchor anchor = PdfStampAnchor.bottomRight, double marginX = 24, double marginY = 24, PdfPoint? position, double rotationDegrees = 0, PdfStampLayer layer = PdfStampLayer.overlay})
-
Creates the text stamp.
const
Properties
- anchor → PdfStampAnchor
-
Reference corner or edge within the visible area.
finalinherited
- background → PdfColor?
-
Background color of the stamp rectangle, or null for a transparent one.
final
- borderColor → PdfColor?
-
Border color of the stamp rectangle, or null to draw no border.
final
- borderWidth → double
-
Border thickness.
final
- color → PdfColor
-
Text color.
final
- font → PdfFont?
-
The font; when null, a Helvetica shared by the document.
final
- fontSize → double
-
Font size, in display points.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- layer → PdfStampLayer
-
Whether the stamp goes over or under the original content.
finalinherited
- marginX → double
-
Horizontal distance between the stamp and the edge, in display points.
finalinherited
- marginY → double
-
Vertical distance between the stamp and the edge, in display points.
finalinherited
- padding → double
-
Space between the text and the edges of the rectangle.
final
- position → PdfPoint?
-
Explicit upper-left corner, in "top-left" coordinates.
finalinherited
- rotationDegrees → double
-
Rotation of the stamp itself, in degrees counter-clockwise on display.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The text to stamp.
final
Methods
-
measure(
PdfDocument document) → PdfPoint -
Size of the stamp, in display points.
override
-
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.
override
-
resolveFont(
PdfDocument document) → PdfFont -
The effective font of this stamp inside
document. -
resolveRect(
PdfCoordinateTransformer transformer, PdfPoint size) → PdfTopLeftRect -
Area taken up by the stamp, in "top-left" coordinates.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited