Skip to content

Commit

Permalink
Update README file
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck ALARY committed May 27, 2020
1 parent cc20f5c commit 18ccd95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ Prints a EAN8 barcode (height: 10mm, width: ~70% printer width, text: displayed
Prints a UPC-A barcode (height: 20mm, width: ~70% printer width, text: displayed below).
- `<barcode type='upce' height='25' width='50' text='none'>512789</barcode>` : **(6 numbers)**
Prints a UPC-E barcode (height: 25mm, width: ~50mm, text: hidden).
- `<barcode type='128' width='40' text='above'>DantSu</barcode>` :
- `<barcode type='128' width='40' text='above'>DantSu</barcode>` : **(string)**
Prints a barcode 128 (height: 10mm, width: ~40mm, text: displayed above).

**⚠ WARNING ⚠** : This tag has several constraints :
Expand Down
2 changes: 1 addition & 1 deletion escposprinter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ Prints a EAN8 barcode (height: 10mm, width: ~70% printer width, text: displayed
Prints a UPC-A barcode (height: 20mm, width: ~70% printer width, text: displayed below).
- `<barcode type='upce' height='25' width='50' text='none'>512789</barcode>` : **(6 numbers)**
Prints a UPC-E barcode (height: 25mm, width: ~50mm, text: hidden).
- `<barcode type='128' width='40' text='above'>DantSu</barcode>` :
- `<barcode type='128' width='40' text='above'>DantSu</barcode>` : **(string)**
Prints a barcode 128 (height: 10mm, width: ~40mm, text: displayed above).

**⚠ WARNING ⚠** : This tag has several constraints :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public EscPosPrinterCommands printBarcode(Barcode barcode) {
* @param size dot size of QR code pixel
* @return Fluent interface
*/
public EscPosPrinterCommands printQRCode(int qrCodeType, String text, int size) {
public EscPosPrinterCommands printQRCode(int qrCodeType, String text, int size) throws EscPosEncodingException {
if (!this.printerConnection.isConnected()) {
return this;
}
Expand Down Expand Up @@ -387,6 +387,7 @@ public EscPosPrinterCommands printQRCode(int qrCodeType, String text, int size)
this.printerConnection.write(new byte[]{0x1D, 0x28, 0x6B, 0x03, 0x00, 0x31, 0x51, 0x30});
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
throw new EscPosEncodingException(e.getMessage());
}
return this;
}
Expand Down

0 comments on commit 18ccd95

Please sign in to comment.