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
2024-07-05 14:18:42 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c9d09969c5b8d4d920136f1748e583b78fa555ce
c9d09969
1 parent
c5f5d1c3
Add changelog and format
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
printing/CHANGELOG.md
printing/ios/Classes/PrintJob.swift
printing/ios/Classes/PrintingPlugin.swift
printing/CHANGELOG.md
View file @
c9d0996
# Changelog
## 5.13.2
-
Added new printing output type value on iOS
[
Matteo Ricupero
]
## 5.13.1
-
Fix Flutter SDK Minimum version
...
...
@@ -39,7 +43,7 @@
-
Fix raster crash on iOS and MacOS
[
Eduardo Vital Alencar Cunha
]
-
Fix wrong format in directPrintPdf
[
<AlhasanAlQaisi>
]
-
Add compatibility with Android Gradle Plugin 8.0
[
asaarnak
]
-
Add compatibility with
Flutter 3.10
-
Add compatibility with Flutter 3.10
-
Re-init UIPrinter cause issues with delegate
[
Hasan
]
## 5.10.3
...
...
printing/ios/Classes/PrintJob.swift
View file @
c9d0996
...
...
@@ -151,9 +151,10 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate
for
paper
in
paperList
{
if
(
paper
.
paperSize
.
width
==
currentSize
!.
width
&&
paper
.
paperSize
.
height
==
currentSize
!.
height
)
||
(
paper
.
paperSize
.
width
==
currentSize
!.
height
&&
paper
.
paperSize
.
height
==
currentSize
!.
width
)
{
(
paper
.
paperSize
.
width
==
currentSize
!.
height
&&
paper
.
paperSize
.
height
==
currentSize
!.
width
)
{
return
paper
}
}
}
let
bestPaper
=
UIPrintPaper
.
bestPaper
(
forPageSize
:
currentSize
!
,
withPapersFrom
:
paperList
)
...
...
printing/ios/Classes/PrintingPlugin.swift
View file @
c9d0996
...
...
@@ -60,10 +60,9 @@ public class PrintingPlugin: NSObject, FlutterPlugin {
let
marginBottom
=
CGFloat
((
args
[
"marginBottom"
]
as!
NSNumber
)
.
floatValue
)
let
printJob
=
PrintJob
(
printing
:
self
,
index
:
args
[
"job"
]
as!
Int
)
let
dynamic
=
args
[
"dynamic"
]
as!
Bool
let
outputType
:
UIPrintInfo
.
OutputType
switch
(
args
[
"outputType"
]
as!
Int
)
{
switch
args
[
"outputType"
]
as!
Int
{
case
0
:
outputType
=
UIPrintInfo
.
OutputType
.
general
case
1
:
...
...
Please
register
or
login
to post a comment