PdfSectionTemplate class

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.
getter/setter pairinherited
bottomTemplate bool
Gets or sets value indicating whether parent bottom page template should be used or not.
getter/setter pair
evenBottom PdfPageTemplateElement?
Gets a even bottom page template.
getter/setter pairinherited
evenLeft PdfPageTemplateElement?
Gets a even left page template.
getter/setter pairinherited
evenRight PdfPageTemplateElement?
Gets a even right page template.
getter/setter pairinherited
evenTop PdfPageTemplateElement?
Gets a even top page template.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
left PdfPageTemplateElement?
Gets a left page template.
getter/setter pairinherited
leftTemplate bool
Gets or sets value indicating whether parent Left page template should be used or not.
getter/setter pair
oddBottom PdfPageTemplateElement?
Gets a odd bottom page template.
getter/setter pairinherited
oddLeft PdfPageTemplateElement?
Gets a odd left page template.
getter/setter pairinherited
oddRight PdfPageTemplateElement?
Gets a odd right page template.
getter/setter pairinherited
oddTop PdfPageTemplateElement?
Gets a odd top page template.
getter/setter pairinherited
Gets a right page template.
getter/setter pairinherited
rightTemplate bool
Gets or sets value indicating whether parent right page template should be used or not.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stamp bool
Gets or sets value indicating whether the parent stamp elements should be used or not.
getter/setter pair
stamps PdfStampCollection
Gets a collection of stamp elements.
no setterinherited
top PdfPageTemplateElement?
Gets a top page template.
getter/setter pairinherited
topTemplate bool
Gets or sets value indicating whether parent top page template should be used or not.
getter/setter pair

Methods

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

Operators

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