Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2018-12-09 09:44:36 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fd1e260771dacd27a2ed1fff3c0c3c8a06e25893
fd1e2607
1 parent
6d04b18d
PdfPage.pageFormat is final
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
pdf/lib/src/page.dart
pdf/lib/src/page.dart
View file @
fd1e260
...
...
@@ -20,7 +20,7 @@ part of pdf;
class
PdfPage
extends
PdfObject
{
/// This is this page format, ie the size of the page, margins, and rotation
PdfPageFormat
pageFormat
;
final
PdfPageFormat
pageFormat
;
/// This holds the contents of the page.
List
<
PdfObjectStream
>
contents
=
[];
...
...
@@ -45,10 +45,9 @@ class PdfPage extends PdfObject {
///
/// @param pdfDocument Document
/// @param pageFormat [PdfPageFormat] describing the page size
PdfPage
(
PdfDocument
pdfDocument
,
{
this
.
pageFormat
})
PdfPage
(
PdfDocument
pdfDocument
,
{
this
.
pageFormat
=
PdfPageFormat
.
a4
})
:
super
(
pdfDocument
,
"/Page"
)
{
pdfDocument
.
pdfPageList
.
pages
.
add
(
this
);
if
(
pageFormat
==
null
)
pageFormat
=
PdfPageFormat
.
a4
;
}
/// This returns a [PdfGraphics] object, which can then be used to render
...
...
Please
register
or
login
to post a comment