phonegap/phonegap-plugins — Issue #315: PrintPlugin crops output
Author: EionRobb
Created: 2012-01-13 00:51:54+00:00
State: open

By default the UIWebView created to render the HTML output to print will create a 1024x1024 frame. This can cause cropping on printouts. To fix, replace
UIWebView *webViewPrint = [[UIWebView alloc] init];
with
UIPrintPaper *printPaper = [controller printPaper];
UIWebView *webViewPrint = [[UIWebView alloc] initWithFrame:[printPaper printableRect]];