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.
source to share
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
source to share