Printing HTML Templates with EPSON epos IOS SDK

I am creating a print cordova plugin using the EPSON epos iOS SDK to use with hybrid mobile apps (ion based). Sdk provides methods for printing text and images. But I have to print the HTML template using it. is there a way to do this?

as if I could prepare a UIWebView object from a template and convert it to a UIImage. I am new to iOS development so I don’t know how to do this correctly.

+3


source to share


1 answer


You can render UIWebView

off-screen and then freeze it as UIImage

. the answers below will help you solve the problem. One of the problems you may run into is UIWebView

not loading unless you add it to UIWindow

, this window can be any object UIWindow

, not necessarily user-rendered.

How to get FULL image from UIWebView including offscreen content



Does iPhone / iPad need UIWebView for active browsing?

How to save content of UIWebView as image

0


source







All Articles