PdfSectionTemplate class Null safety

Represents a page template for all the pages in the section.

//Create a new PDF documentation
PdfDocument document = PdfDocument();
//Create a new PDF section
PdfSection section = document.sections!.add();
//Create a section template
PdfSectionTemplate template = PdfSectionTemplate();
//Sets the template for the page in the section
section.template = template;
//Create a new PDF page and draw the text
section.pages.add().graphics.drawString(
    'Hello World!!!', PdfStandardFont(PdfFontFamily.helvetica, 27),
    brush: PdfBrushes.darkBlue, bounds: const Rect.fromLTWH(170, 100, 0, 0));
//Save the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();
Inheritance

Constructors

PdfSectionTemplate()
Initializes a new instance of the PdfSectionCollection class.

Properties

bottom PdfPageTemplateElement?
Gets a bottom page template.
read / writeinherited
bottomTemplate bool
Gets or sets value indicating whether parent bottom page template should be used or not.
read / write
evenBottom PdfPageTemplateElement?
Gets a even bottom page template.
read / writeinherited
evenLeft PdfPageTemplateElement?
Gets a even left page template.
read / writeinherited
evenRight PdfPageTemplateElement?
Gets a even right page template.
read / writeinherited
evenTop PdfPageTemplateElement?
Gets a even top page template.
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
left PdfPageTemplateElement?
Gets a left page template.
read / writeinherited
leftTemplate bool
Gets or sets value indicating whether parent Left page template should be used or not.
read / write
oddBottom PdfPageTemplateElement?
Gets a odd bottom page template.
read / writeinherited
oddLeft PdfPageTemplateElement?
Gets a odd left page template.
read / writeinherited
oddRight PdfPageTemplateElement?
Gets a odd right page template.
read / writeinherited
oddTop PdfPageTemplateElement?
Gets a odd top page template.
read / writeinherited
Gets a right page template.
read / writeinherited
rightTemplate bool
Gets or sets value indicating whether parent right page template should be used or not.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stamp bool
Gets or sets value indicating whether the parent stamp elements should be used or not.
read / write
stamps PdfStampCollection
Gets a collection of stamp elements.
read-onlyinherited
top PdfPageTemplateElement?
Gets a top page template.
read / writeinherited
topTemplate bool
Gets or sets value indicating whether parent top page template should be used or not.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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