PdfPage class Null safety

Page object, which will hold any contents for this page.

Constructors

PdfPage(PdfDocument pdfDocument, {PdfPageFormat pageFormat = PdfPageFormat.standard, PdfPageRotation rotate = PdfPageRotation.none, int? index, int? objser, int objgen = 0})
This constructs a Page object, which will hold any contents for this page.

Properties

annotations List<PdfAnnot>
This holds any Annotations contained within this page.
final
contents List<PdfObjectStream>
This holds the contents of the page.
final
fonts Map<String, PdfFont>
The fonts associated with this page
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isolatedTransparency bool
Isolated transparency: If this flag is true, objects within the group shall be composited against a fully transparent initial backdrop; if false, they shall be composited against the group’s backdrop
read / write, inherited
knockoutTransparency bool
Whether the transparency group is a knockout group. If this flag is false, later objects within the group shall be composited with earlier ones with which they overlap; if true, they shall be composited with the group’s initial backdrop and shall overwrite any earlier overlapping objects.
read / write, inherited
objgen int
This is the generation number for this object.
final, inherited
objser int
This is the unique serial number for this object.
final, inherited
pageFormat PdfPageFormat
This is this page format, ie the size of the page, margins, and rotation
read / write
params → PdfDict<PdfDataType>
This is the object parameters.
final, inherited
patterns Map<String, PdfPattern>
The shaders associated with this page
final, inherited
pdfDocument PdfDocument
This allows any Pdf object to refer to the document being constructed.
final, inherited
rotate PdfPageRotation
The page rotation angle
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shading Map<String, PdfShading>
The shaders associated with this page
final, inherited
xObjects Map<String, PdfXObject>
The xobjects or other images in the pdf
final, inherited

Methods

addAnnotation(PdfAnnot ob) → void
This adds an Annotation to the page.
addFont(PdfFont font) → void
Add a font to this graphic object
inherited
addPattern(PdfPattern pattern) → void
Add a pattern to this graphic object
inherited
addShader(PdfShading shader) → void
Add a shader to this graphic object
inherited
addXObject(PdfXObject object) → void
Add an XObject to this graphic object
inherited
getDefaultFont() PdfFont?
Get the default font of this graphic object
inherited
getGraphics() PdfGraphics
This returns a PdfGraphics object, which can then be used to render on to this page. If a previous PdfGraphics object was used, this object is appended to the page, and will be drawn over the top of any previous objects.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
prepare() → void
Prepare the object to be written to the stream
ref() → PdfIndirect
Returns the unique serial number in Pdf format
inherited
stateName(PdfGraphicState state) String
Generate a name for the graphic state object
inherited
toString() String
A string representation of this object. [...]
inherited
write(PdfStream os) → void
Writes the object to the output stream.
inherited
writeContent(PdfStream os) → void
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited