Showing
3 changed files
with
9 additions
and
5 deletions
1 | # Changelog | 1 | # Changelog |
2 | 2 | ||
3 | +## 5.13.2 | ||
4 | + | ||
5 | +- Added new printing output type value on iOS [Matteo Ricupero] | ||
6 | + | ||
3 | ## 5.13.1 | 7 | ## 5.13.1 |
4 | 8 | ||
5 | - Fix Flutter SDK Minimum version | 9 | - Fix Flutter SDK Minimum version |
@@ -39,7 +43,7 @@ | @@ -39,7 +43,7 @@ | ||
39 | - Fix raster crash on iOS and MacOS [Eduardo Vital Alencar Cunha] | 43 | - Fix raster crash on iOS and MacOS [Eduardo Vital Alencar Cunha] |
40 | - Fix wrong format in directPrintPdf [<AlhasanAlQaisi>] | 44 | - Fix wrong format in directPrintPdf [<AlhasanAlQaisi>] |
41 | - Add compatibility with Android Gradle Plugin 8.0 [asaarnak] | 45 | - Add compatibility with Android Gradle Plugin 8.0 [asaarnak] |
42 | -- Add compatibility with Flutter 3.10 | 46 | +- Add compatibility with Flutter 3.10 |
43 | - Re-init UIPrinter cause issues with delegate [Hasan] | 47 | - Re-init UIPrinter cause issues with delegate [Hasan] |
44 | 48 | ||
45 | ## 5.10.3 | 49 | ## 5.10.3 |
@@ -151,9 +151,10 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | @@ -151,9 +151,10 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | ||
151 | 151 | ||
152 | for paper in paperList { | 152 | for paper in paperList { |
153 | if (paper.paperSize.width == currentSize!.width && paper.paperSize.height == currentSize!.height) || | 153 | if (paper.paperSize.width == currentSize!.width && paper.paperSize.height == currentSize!.height) || |
154 | - (paper.paperSize.width == currentSize!.height && paper.paperSize.height == currentSize!.width) { | 154 | + (paper.paperSize.width == currentSize!.height && paper.paperSize.height == currentSize!.width) |
155 | + { | ||
155 | return paper | 156 | return paper |
156 | - } | 157 | + } |
157 | } | 158 | } |
158 | 159 | ||
159 | let bestPaper = UIPrintPaper.bestPaper(forPageSize: currentSize!, withPapersFrom: paperList) | 160 | let bestPaper = UIPrintPaper.bestPaper(forPageSize: currentSize!, withPapersFrom: paperList) |
@@ -60,10 +60,9 @@ public class PrintingPlugin: NSObject, FlutterPlugin { | @@ -60,10 +60,9 @@ public class PrintingPlugin: NSObject, FlutterPlugin { | ||
60 | let marginBottom = CGFloat((args["marginBottom"] as! NSNumber).floatValue) | 60 | let marginBottom = CGFloat((args["marginBottom"] as! NSNumber).floatValue) |
61 | let printJob = PrintJob(printing: self, index: args["job"] as! Int) | 61 | let printJob = PrintJob(printing: self, index: args["job"] as! Int) |
62 | let dynamic = args["dynamic"] as! Bool | 62 | let dynamic = args["dynamic"] as! Bool |
63 | - | ||
64 | 63 | ||
65 | let outputType: UIPrintInfo.OutputType | 64 | let outputType: UIPrintInfo.OutputType |
66 | - switch (args["outputType"] as! Int) { | 65 | + switch args["outputType"] as! Int { |
67 | case 0: | 66 | case 0: |
68 | outputType = UIPrintInfo.OutputType.general | 67 | outputType = UIPrintInfo.OutputType.general |
69 | case 1: | 68 | case 1: |
-
Please register or login to post a comment