You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-18Lines changed: 38 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,32 @@
1
1
# Raw Printing HTTP Server
2
-
Simple HTTP Server to send binary data from browser (javascript) to client local printer. It supports ESC/POS codes and works well with Generic/Text Only Driver. It supports all browser that has XHR implementation.
2
+
Simple HTTP Server to send binary data from browser (javascript) to client local or network printer. It supports ESC/POS codes and works well with Generic/Text Only Driver. It supports all browser that has XHR implementation.
3
+
4
+
## How It Works
5
+
<pre>
6
+
Cloud (API)
7
+
8
+
↓ send Print Document (Base64 String)
9
+
10
+
Browser
11
+
12
+
↓ Relay the print document
13
+
14
+
Raw Printing HTTP Server
15
+
16
+
↓ Convert Base64 to byte array then send
17
+
18
+
Local or Network Printer
19
+
</pre>
20
+
21
+
## Installation
22
+
* Download the zip package [here](https://github.com/lockerace/RawPrintingHTTPServer/releases/latest)
23
+
* Extract the zip package
24
+
* Run setup.exe
25
+
* Follow the steps
26
+
* Run Raw Printing HTTP Server from Start (Auto start whenever user sign in)
27
+
3
28
## Configurations
4
-
Config file will be in the same directory you install the service named `config.json`.
29
+
Config file will be in `%PROGRAMDATA%\lockerace\RawPrintingHTTPServer` named `config.json`.
5
30
parameters :
6
31
* allowedDomains: string[] => list of allowed origin domains (please include protocol & port)
7
32
* port: int => port number to listen (default: 9100)
@@ -16,7 +41,7 @@ example :
16
41
"port": 9100
17
42
}
18
43
```
19
-
## Paths :
44
+
## Endpoints :
20
45
* GET `/` => view current status of the server and remove already allowed domains via GUI
0 commit comments