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
2023-06-06 09:25:28 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1ad1ed5cc7471f29ca63bc7aec86d03143cf89f9
1ad1ed5c
1 parent
c83bb4cf
Use pdfDpi on CPP lib
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
printing/CHANGELOG.md
printing/pubspec.yaml
printing/windows/print_job.cpp
printing/CHANGELOG.md
View file @
1ad1ed5
# Changelog
## 5.11.1
-
Use pdfDpi on CPP lib
## 5.11.0
-
Set Flutter 3.10 as the minimum version
...
...
printing/pubspec.yaml
View file @
1ad1ed5
...
...
@@ -9,7 +9,7 @@ issue_tracker: https://github.com/DavBfr/dart_pdf/issues
screenshots
:
-
description
:
'
Printing
a
document
on
iOS'
path
:
example.png
version
:
5.11.
0
version
:
5.11.
1
environment
:
sdk
:
"
>=3.0.0
<4.0.0"
...
...
printing/windows/print_job.cpp
View file @
1ad1ed5
...
...
@@ -102,12 +102,12 @@ bool PrintJob::printPdf(const std::string& name,
dm
->
dmPaperSize
=
0
;
if
(
width
>
height
)
{
dm
->
dmOrientation
=
DMORIENT_LANDSCAPE
;
dm
->
dmPaperWidth
=
static_cast
<
short
>
(
round
(
height
*
254
/
72
));
dm
->
dmPaperLength
=
static_cast
<
short
>
(
round
(
width
*
254
/
72
));
dm
->
dmPaperWidth
=
static_cast
<
short
>
(
round
(
height
*
254
/
pdfDpi
));
dm
->
dmPaperLength
=
static_cast
<
short
>
(
round
(
width
*
254
/
pdfDpi
));
}
else
{
dm
->
dmOrientation
=
DMORIENT_PORTRAIT
;
dm
->
dmPaperWidth
=
static_cast
<
short
>
(
round
(
width
*
254
/
72
));
dm
->
dmPaperLength
=
static_cast
<
short
>
(
round
(
height
*
254
/
72
));
dm
->
dmPaperWidth
=
static_cast
<
short
>
(
round
(
width
*
254
/
pdfDpi
));
dm
->
dmPaperLength
=
static_cast
<
short
>
(
round
(
height
*
254
/
pdfDpi
));
}
}
...
...
Please
register
or
login
to post a comment