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
2022-05-08 12:41:35 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d988aff40de3d82f5f06f2dafdb628cc7be46b6b
d988aff4
1 parent
6dd191a4
Prevent modifying the document once saved
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
pdf/CHANGELOG.md
pdf/lib/src/widgets/document.dart
pdf/CHANGELOG.md
View file @
d988aff
...
...
@@ -7,6 +7,7 @@
-
Implement PdfPageLabels
-
Typo: rename "litteral" with "literal"
-
Fix tabs and other spaces placeholder
-
Prevent modifying the document once saved
## 3.7.4
...
...
pdf/lib/src/widgets/document.dart
View file @
d988aff
...
...
@@ -114,11 +114,13 @@ class Document {
bool
_paint
=
false
;
void
addPage
(
Page
page
,
{
int
?
index
})
{
assert
(!
_paint
,
'The document has already been saved.'
);
page
.
generate
(
this
,
index:
index
);
_pages
.
add
(
page
);
}
void
editPage
(
int
index
,
Page
page
)
{
assert
(!
_paint
,
'The document has already been saved.'
);
page
.
generate
(
this
,
index:
index
,
insert:
false
);
_pages
.
add
(
page
);
}
...
...
Please
register
or
login
to post a comment