All Projects → receipt-print-hq → chrome-raw-print

receipt-print-hq / chrome-raw-print

Licence: MIT license
Chrome app to enable raw printing from a browser

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to chrome-raw-print

escpos-tools
Utilities to read ESC/POS print data
Stars: ✭ 145 (+154.39%)
Mutual labels:  printing, receipt, pos
ESCPOS
A ESC/POS Printer Commands Helper
Stars: ✭ 26 (-54.39%)
Mutual labels:  printer, receipt, pos
Printooth
A well documented, high-level Android interface that makes printing via bluetooth printers easier
Stars: ✭ 231 (+305.26%)
Mutual labels:  printer, printing
esc pos bluetooth
ESC/POS (thermal, receipt) printing for Flutter & Dart (Android/iOS)
Stars: ✭ 177 (+210.53%)
Mutual labels:  receipt, pos
Gutenberg
Modern framework to print the web correctly.
Stars: ✭ 4,425 (+7663.16%)
Mutual labels:  printer, printing
bootstrap-print
To manage print media for Twitter Bootstrap v3.
Stars: ✭ 60 (+5.26%)
Mutual labels:  printer, printing
Cups
Apple CUPS Sources
Stars: ✭ 1,223 (+2045.61%)
Mutual labels:  printer, printing
Esc pos printer
ESC/POS (thermal, receipt) printing for Flutter & Dart
Stars: ✭ 148 (+159.65%)
Mutual labels:  printer, pos
Codeprinter
🖨️ Print out code easily
Stars: ✭ 233 (+308.77%)
Mutual labels:  printer, printing
store-pos
It is java accounting software basically developed using javafx which has various modules like purchase, sales, receipts, payments, and journals.
Stars: ✭ 84 (+47.37%)
Mutual labels:  pos
AngularPos
A real-time, simple web Point of Sale system written with Angular 12, Firebase (Cloud Firestore), Bootstrap 4 and PrimeNg
Stars: ✭ 67 (+17.54%)
Mutual labels:  pos
quicktill
Figure out where all the money and stock went to
Stars: ✭ 29 (-49.12%)
Mutual labels:  pos
HTP
Hack The Printer
Stars: ✭ 31 (-45.61%)
Mutual labels:  printer
Print-Reset-Tool
No description or website provided.
Stars: ✭ 18 (-68.42%)
Mutual labels:  printing
ezdmb
A dead-simple digital menu board display and configuration, written in Python.
Stars: ✭ 17 (-70.18%)
Mutual labels:  pos
jipp
A Java implementation of IPP
Stars: ✭ 97 (+70.18%)
Mutual labels:  printing
dart-more
More Dart — Literally.
Stars: ✭ 81 (+42.11%)
Mutual labels:  printer
iOS-AirPrint-for-Mac
enable iOS Airprint Sharing on Mac OS
Stars: ✭ 24 (-57.89%)
Mutual labels:  printing
pos-mamba-sdk
SDK for developing in the Mamba web environment
Stars: ✭ 34 (-40.35%)
Mutual labels:  pos
winprint
winprint 2.0 - Advanced source code and text file printing. The perfect tool for printing source code, web pages, reports generated by legacy systems, documentation, or any text or HTML file. It works interactively or from the command line making it great for single users or whole enterprises. Works great with Powershell.
Stars: ✭ 52 (-8.77%)
Mutual labels:  printing

Raw printing for Chrome

Chrome Apps are being discontinued by Google in 2018, so this project will no longer be actively developed. At the time of writing, neither WebUSB nor raw sockets can be used from regular web pages, so you will need to transition to a native app for this functionality once the runtime becomes unavailable.

Thank you to everybody who has used or contributed to this app over the past year and a half!


This is a Chrome app to allow browser-based Javascript code to pass raw data to a supported printer. It is aimed at developers of web-based point-of-sale systems where server-side printing is not feasable.

This has been developed for use with a USB receipt printer, with an ESC/POS command generator (escpos-php) providing the binary data.

The problem

It can be difficult to add printing to a web-based point-of-sale system:

  • The local print system does not use raw output, so you get low-quality, rasterised output.
  • Allowing inbound connectivity to allow a server to print requires a static IP, and is challenging to secure and debug.

This app solves the problem by exposing a websocket on localhost. A web-page can then retrieve binary print data from the server, and pass it to the app for printing.

Compatibility

Printer types

Only USB receipt printers are currently supported.

  • Networked printers may be supported in future.
  • Serial/Parallel printers may be accessed via a USB adaptor.
  • CUPS/IPP/Windows shared printers are out of scope at this stage, please hook in directly via USB.

Supported printers

Raw printing for Chrome is loaded with vendor/product ID's for the following printers:

  • Epson TM-T20
  • PL2305 Parallel Port
  • Winbond Virtual Com Port.

If your USB printer is not listed, please create a new issue to request support. Because of the way Chrome app permissions work, please include the USB vendor ID and product ID.

Page Description Languages

This app is simply a connector. In theory, any page description language is supported, provided that you are able to generate it, and your printer can understand it.

Installation

This application is not yet available in the Chrome store, so the installation steps are a bit unusual:

  • Download and extract the most recent release.
  • Under chrome://extensions, tick developer mode, and 'load unpacked extension', and locate the extracted folder.

screenshot

  • Launch the extension, select your printer
  • If not listed, find the USB product, vendor ID, add it to manifest.md, and restart.
  • Click print
  • If it doesn't print, check the error log and see the notes displayed on the app window for the basic things to check.
  • In particular, unload the usblp kernel module if applicable, as it will claim the USB interface to the printer.

Demo

A small example web-page available under example/, which will print a "Hello World" receipt in ESC/POS if the raw printing app is running, with an ESC/POS printer configured. Steps to try it out:

  • Run the app
  • Add a printer
  • Open the example web page
  • Click a few buttons and hope for output.

This was tested on an Epson TM-T20.

Build

yarn
gulp

The chrome-raw-print subfolder contains the compiled files.

Contribute

Pull requests are welcome and appreciated. This project is quite new, please see the issue tracker for ideas of things to work on.

Screenshot

screenshot

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].