srigger Posted December 20, 2014 Share Posted December 20, 2014 I can print the content of my uiwebview but it prints on two page, how can I scale it down to fit one page ? My code: @IBAction func printWebPage(sender: UIBarButtonItem) { let url = MainWebView.request?.URL let stringurl = url?.absoluteString let pic = UIPrintInteractionController.sharedPrintController() let printInfo : UIPrintInfo = UIPrintInfo(dictionary: nil) printInfo.outputType = UIPrintInfoOutputType.General printInfo.jobName = url pic!.printInfo = printInfo pic!.printFormatter = MainWebView.viewPrintFormatter() pic!.showsPageRange = false pic!.presentAnimated(true, completionHandler: nil) } Link to comment Share on other sites More sharing options...
Recommended Posts