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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 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
...
...
printing/ios/Classes/PrintJob.swift
View file @
c9d0996
...
...
@@ -151,7 +151,8 @@ 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
}
}
...
...
printing/ios/Classes/PrintingPlugin.swift
View file @
c9d0996
...
...
@@ -61,9 +61,8 @@ public class PrintingPlugin: NSObject, FlutterPlugin {
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