PrintFromWeb API Documentation
PrintFromWeb
The PrintFromWeb API detects a web link call with data to print. Note that launching an application from Google Chrome on modern Android versions is not allowed. You can use other browsers such as Edge or Opera.
Example: Send Test Data
Use the following link to send test data to the PrintFromWeb application:
Note: This feature is compatible with browsers other than Google Chrome on mobile devices.
Print Image From Web
This feature allows you to send an image from a webpage to the PosPrinterDriver app for printing.
Example: Send Image Link
This link will send an image to be printed on Printer 1.
Example: Direct Print Image
This link will directly print the image on Printer 1.
URL Parameters
The following parameters can be used in the URL:
- direct: Use
direct=1for direct printing (e.g.,direct=1). - path: The path to the image or file to print (e.g.,
path=##IMAGE-1740-0x0). - pn: The printer number (e.g.,
pn=1for Printer 1).
Complete Example:
Print PDF File
This feature allows you to send a PDF file from a web browser to the PosPrinterDriver app for printing on a specified printer.
Example: Print PDF File
This link will print the PDF file on Printer 1.
Example: Direct Print PDF
URL Parameters for PDF
The parameters for PDF are the same as for image printing:
- direct: Use
direct=1for direct printing (e.g.,direct=1). - path: The URL to the PDF file (e.g.,
path=https://cdn.virtuapos.com/virtuapos/system/webcomposerdocument/document/26/PosPrinterPDFDemo.pdf). - pn: The printer number (e.g.,
pn=1for Printer 1).
