Showing
2 changed files
with
2 additions
and
1 deletions
@@ -166,7 +166,7 @@ public class SwiftPrintingPlugin: NSObject, FlutterPlugin, UIPrintInteractionCon | @@ -166,7 +166,7 @@ public class SwiftPrintingPlugin: NSObject, FlutterPlugin, UIPrintInteractionCon | ||
166 | 166 | ||
167 | // create pdf context and draw each page | 167 | // create pdf context and draw each page |
168 | let pdfData = NSMutableData() | 168 | let pdfData = NSMutableData() |
169 | - UIGraphicsBeginPDFContextToData(pdfData, .zero, nil) | 169 | + UIGraphicsBeginPDFContextToData(pdfData, rect, nil) |
170 | 170 | ||
171 | for i in 0 ..< renderer.numberOfPages { | 171 | for i in 0 ..< renderer.numberOfPages { |
172 | UIGraphicsBeginPDFPage() | 172 | UIGraphicsBeginPDFPage() |
-
Please register or login to post a comment