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
2021-12-31 13:55:59 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5a088e1a6cc5e80d83a5923dacfc29381b9b6193
5a088e1a
1 parent
faf3091c
Use RENDER_MODE_FOR_DISPLAY on Android
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
printing/CHANGELOG.md
printing/android/src/main/java/net/nfet/flutter/printing/PrintingJob.java
printing/pubspec.yaml
printing/CHANGELOG.md
View file @
5a088e1
...
...
@@ -9,6 +9,7 @@
-
Fix AssetManifest
-
Update Google Fonts
-
Add a default theme initializer
-
Use RENDER_MODE_FOR_DISPLAY on Android
## 5.6.6
...
...
printing/android/src/main/java/net/nfet/flutter/printing/PrintingJob.java
View file @
5a088e1
...
...
@@ -472,7 +472,7 @@ public class PrintingJob extends PrintDocumentAdapter {
Bitmap
bitmap
=
Bitmap
.
createBitmap
(
width
,
height
,
Bitmap
.
Config
.
ARGB_8888
);
page
.
render
(
bitmap
,
null
,
transform
,
PdfRenderer
.
Page
.
RENDER_MODE_FOR_
PRINT
);
bitmap
,
null
,
transform
,
PdfRenderer
.
Page
.
RENDER_MODE_FOR_
DISPLAY
);
page
.
close
();
...
...
printing/pubspec.yaml
View file @
5a088e1
...
...
@@ -22,7 +22,7 @@ dependencies:
image
:
"
>=3.0.1
<=4.0.0"
js
:
^0.6.3
meta
:
^1.7.0
pdf
:
^3.
6.6
pdf
:
^3.
7.0
plugin_platform_interface
:
^2.0.0
dev_dependencies
:
...
...
Please
register
or
login
to post a comment