Web printing is to display and print the content required by the end customer through the browser on the smart POS machine. Note that this browser needs to support portable POS printing, and when the client prints, the smart POS machine with printing function calls the correct printing interface to realize complete web page printing.
Why do customers in the market need to print web pages? At present, many applications exist in the form of web pages, also known as Web-app. Compared with native apps, this web-app can be compatible with more systems. The version update simply reduces the cost of research and development and maintenance, but relies on the network a little.
What is the difficulties with website printing on earth?Because it needs the cooperation of the manufacturer, during the development or testing of Web-app, even the manufacturer provide the SDK interface, and the customer cannot use it. Because the programming language of Web-app is different from Java, the common development language of Android POS devices, the customer needs the manufacturer’s help to operate the Android native code in the HTML through JS bridge to realize the printing of the interface.The specific operation method is as follows:
The vendor creates an APK for web page printing and pre-defines the interaction interface (API) for the call within the APK
The developer inserts a section of JS into the HTML, invokes the predefined API interface as needed, and then transfers the printed content and parameters by passing the JsonArray or String format.
Customer provides URL, Datamega will encapsulate a new APK to load this URL, or APK provides input URL input box to visit the website.
Save the web page as an image and call the interface to print the image directly.The biggest advantage of this way of printing is that you can print quickly through a command, while the disadvantage of printing is that once the size of the picture and the printer do not match, the printed content is easy to distort and blur.
First convert the content of the web page to a PDF file, download the PDF file, and then convert it to an image for printing.This method of printing has the same advantages and disadvantages as picture printing.
The content that needs to be printed is sent directly to the printer via JSON, and different interfaces are invoked for printing according to different content types.The advantage of this printing method is that the printed content will be automatically adjusted according to the size of the printed paper, there will be no distortion.The downside is that this printing method also requires developers to be able to develop in the JAVA language at a slower pace.
All DataMega products can use the above three methods, supporting pictures, text, PDF, bar code, QR code and other printing formats.
We will show you how to achieve the web printing by a sample DEMO as below:
Currently all products of Datamega support webprinting, you can find smart android POS device which support webprinting on www.datamega.net.
Smart P2 is compact size portable printer, it can be used with phone, tablet as printer to support receipt printing.
Latest Android 11 POS SMART O11 with 6.5inch Touch screen, NFC reader, camera, 4G/3G/2G/BT/WIFI, specially it has 2SIM design and 1 SAM card slot.
Lk2Biz is an all-in-one retail data analysis tool that offers powerful featuresand benefits to help you unlock the full potential of your business. Whether you're a small retailer or a large chain, Lk2Biz offers a comprehensive suite of tools to help you make data-driven decisions.
The SDC Fis-BOX/Fis-Control/Fis-BOX PLUS can monitor, record, and sign all transactions for businesses with multiple sales locations, with a multi-user feature and secure storage. Ensure compliance with related laws and satisfy stakeholders with the SDC.
Keep your business running smoothly with MDM solutions that help you manage and secure mobile devices across your enterprise. Remotely manage devices, upgrade device software remotely and provide remote technical support.
Retail POS solution EazSell makes inventory management, checkout, and customer tracking a breeze. With its sleek design and powerful features, it's the ultimate tool for streamlining your operations and building customer loyalty.
Android POS Smart-CASH is specially designed for restaurants and medium stores as checkout system. Electronic invoicing POS machine Smart-CASH is able to work with peripherals of cash drawer, scale, scanner, and EFTPOS ,etc as whole POS system for customers.
New PSAM android POS will be used for more industries of mobile payment, retail sales management, ticket printing, packing management and so on.