NewPage class
Copyright © 2018-2024 PSPDFKit GmbH. All rights reserved.
THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT. UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. This notice may not be removed from this file.
Represents a new PDF page of any type.
Constructors
- NewPage.fromImage(PdfImagePage imagePage, {PageSize? pageSize, EdgeInsets? margins, int? rotation, Color? backgroundColor})
-
New page from image.
imagePageThe PdfImagePage to use for the page.pageSizeThe size of the page. Defaults to A4.marginsThe margins of the page. Defaults to 0.rotationThe rotation of the page. Defaults to 0.backgroundColorThe background color of the page. Defaults to white.factory - NewPage.fromPattern(PagePattern pattern, {PageSize? pageSize, EdgeInsets? margins, int? rotation, Color? backgroundColor})
-
New page from tiled pattern
patternThe pattern to use for the page.pageSizeThe size of the page. Defaults to A4.marginsThe margins of the page. Defaults to 0.rotationThe rotation of the page. Defaults to 0.backgroundColorThe background color of the page. Defaults to white.factory - NewPage.fromPdfPage(PdfPage sourceDocument, {PageSize? pageSize, EdgeInsets? margins, int? rotation, Color? backgroundColor})
-
New page from template.
sourceDocumentgeThe the PdfPage to use for the template.pageSizeThe size of the page. Defaults to A4.marginsThe margins of the page. Defaults to 0.rotationThe rotation of the page. Defaults to 0.backgroundColorThe background color of the page. Defaults to white.factory
Properties
- backgroundColor → Color?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imagePage → PdfImagePage?
-
Image added to a page. */
final
- margins → EdgeInsets?
-
Page margin in PDF points.
final
- pageSize → PageSize
-
Page size in PDF points.
final
- pdfPage → PdfPage?
-
PDF added to a page. */
final
- rotation → int?
-
Page rotation ranging from = -270 to 270)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourcePattern → PagePattern?
-
final
- type → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Convert page to map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited