David PHAM-VAN

Fix Html to Pdf paper size on iOS

... ... @@ -3,6 +3,7 @@
## 2.1.4
- Update example to show saved documents on iOS Files app
- Fix Html to Pdf paper size on iOS
## 2.1.3
... ...
... ... @@ -166,7 +166,7 @@ public class SwiftPrintingPlugin: NSObject, FlutterPlugin, UIPrintInteractionCon
// create pdf context and draw each page
let pdfData = NSMutableData()
UIGraphicsBeginPDFContextToData(pdfData, .zero, nil)
UIGraphicsBeginPDFContextToData(pdfData, rect, nil)
for i in 0 ..< renderer.numberOfPages {
UIGraphicsBeginPDFPage()
... ...