Patrick Kanzler
ae37de2577
DOC improve doc on network printing
2016-01-17 16:00:03 +01:00
Patrick Kanzler
0c56f5c831
DOC improve docstring in barcode-method
2016-01-14 15:50:58 +01:00
Patrick Kanzler
248ddf8456
IMPROVE barcode printing
...
* adds default values to the auxiliary parameters
* allows to suppress the centered alignment
2016-01-14 14:51:26 +01:00
Patrick Kanzler
713380baf9
DOC corrected todo in barcode-method
2016-01-14 14:04:35 +01:00
Patrick Kanzler
cd2da59fc2
FIX and review barcode-printing
2016-01-14 01:00:53 +01:00
Patrick Kanzler
939e66834e
DOC elaborate on partial cut
...
closes #44
2016-01-13 16:06:18 +01:00
Patrick Kanzler
41c6afd3b8
REFACTOR replace % op with format were it is easy
2016-01-08 03:43:33 +01:00
Patrick Kanzler
f25521f22f
REFACTOR fix minor PEP8 and similar mistakes
2016-01-08 03:34:14 +01:00
Stephan Sokolow
0e907644d9
Allow bandsize to be varied in fullimage()
2016-01-08 02:46:21 +01:00
Stephan Sokolow
a6ec674828
Allow bypassing the resizing and height-cropping steps in fullimage()
2016-01-08 02:46:21 +01:00
Thomas van den Berg
598c893943
add function to print full images including resizing and fix band printing
2016-01-08 02:46:21 +01:00
Nathan Bookham
1614298863
Adjusted QR error correction
...
Maxed out the error correction on QR code generation for vastly improved recognition. The trade-off is that the amount of bytes that can be stored are reduced.
2016-01-08 02:46:21 +01:00
Stephan Sokolow
a921061b40
Start on a command-line interface to the library (still hard-codes USB ID)
...
(...and still needs better documentation)
2016-01-08 02:46:21 +01:00
Stephan Sokolow
050419f117
Apply the cash drawer fix detailed in Issue 10 on the Google Code repo.
...
https://code.google.com/p/python-escpos/issues/detail?id=10
fixes #10
2016-01-08 02:46:21 +01:00
Stephan Sokolow
3e89a10bed
Accept "CODABAR" as an alias for "NW7" in barcode()
2016-01-08 02:46:21 +01:00
Stephan Sokolow
e988873999
Make BarcodeSizeError and BarcodeTypeError display the erroneous value
...
(MUCH more helpful for debugging)
2016-01-08 02:46:21 +01:00
Stephan Sokolow
f7a2caee72
Actually use the barcode height and width parameters
...
(And reverse their order in the method signature so corrections to the
range checks don't break existing code)
check whether this is the solution for #26
2016-01-08 02:46:21 +01:00
Stephan Sokolow
4e1f9db5c7
Make the structure of the ESC/POS commands less opaque
...
(The commands are intended to be readable by people who grew up with ANSI
escape codes so represent them that way in the code)
2016-01-08 02:46:12 +01:00
Davis Goglin
9159aafd18
IMPROVE use sendall instead of send in network-printer
2016-01-08 01:56:06 +01:00
Patrick Kanzler
e88a19ef2d
DOC correct mistake in documentation
2016-01-06 12:02:30 +01:00
Patrick Kanzler
8b8ca76af6
DOC improve the documentation
...
* make API-doc more legible
* improve comments in methods
2016-01-05 23:14:35 +01:00
Christoph Heuel
aa4ffdd21b
Merge branch 'fix/break_output_after_image'
2015-12-13 14:18:44 +01:00
Christoph Heuel
06f2e1e731
Merge remote-tracking branch 'faulab/refactoring-and-documentation'
2015-12-12 18:11:58 +01:00
Christoph Heuel
577de10cb4
Merge remote-tracking branch 'faulab/fix-pc1252'
2015-12-12 17:10:05 +01:00
Christoph Heuel
8fd05eb02b
Add flush function
...
* Flushing the file will cause the driver to flush the cache and print
* the whole buffer.
2015-11-29 16:03:56 +01:00
Patrick Kanzler
c1d985eeaf
FIX constant definition for PC1252
...
* fixes #40
* according to the table http://content.epson.de/fileadmin/content/files/RSD/downloads/escpos.pdf
2015-11-28 14:22:54 +01:00
Patrick Kanzler
0dacc35d94
DOC, IMPROVE improve docstrings and add abstract method _raw to Escpos
2015-11-27 23:13:48 +01:00
Patrick Kanzler
ef8035527c
REFACTOR do not shadow built-ins
2015-11-27 23:13:48 +01:00
Patrick Kanzler
07d8e073ae
REFACTOR style and PEP8, fixes #66
2015-11-27 23:13:35 +01:00
Patrick Kanzler
096445631f
REFACTOR use new-style class for Escpos
2015-11-27 23:13:35 +01:00
Patrick Kanzler
3ea52e52fd
REFACTOR chained boolean expression in escpos
2015-11-27 23:13:35 +01:00
manpaz
4bb94c2662
Merge pull request #59 from zouppen/vertical-length-fix
...
Support for images vertically longer than 256 pixels
2015-10-27 13:36:21 -07:00
Hark
cd5969e843
Prevent crash when using libusb0 printers
2015-09-04 22:48:58 +01:00
Christoph Heuel
1a1ed5e7fc
Fix mixed tabs/space error
2015-08-27 23:45:15 +02:00
Christoph Heuel
e23ce9bfc2
Merge remote-tracking branch 'origin/master' into merge/upstream/master
2015-08-27 23:37:44 +02:00
Christoph Heuel
546f47edcc
Fix text wrapping error after image
...
* After an image the text wrapping was disturbed.
2015-08-27 23:20:53 +02:00
Joel Lehtonen
3f6528da07
Support for images vertically longer than 256 pixels
2015-08-25 12:17:11 +03:00
Manuel F Martinez
280000d6ed
Fixed issues with transparent images
2015-08-22 12:43:09 -07:00
ldos
f0f84e1215
Extended params for serial printers
...
Update printer.Serial() constructor and its open() method to extend serial params.
Backwards compatible, no client modifications needed.
2015-07-04 17:23:31 +02:00
Christoph Heuel
25b650c935
Hexlify text
...
* The original code did not convert the received text
2015-06-26 02:12:30 +02:00
Christoph Heuel
6734864a5b
Use unhexlify
...
* for decoding, use unhexlify
2015-06-15 23:08:49 +02:00
Manuel F Martinez
9550ad1068
Fixed License version mismatch
2015-06-10 16:28:27 -07:00
Christoph Heuel
0ef2951c7e
Introduce new direct_image
...
* The direct_image method prints directly from the PIL image object
* The image should be converted to 1 bit before
* The method was derived from png2escpos (https://github.com/twg/png2escpos )
2015-06-10 03:21:52 +02:00
Christoph Heuel
dd228c9fda
Add text wrapping
...
* The base class supports to give columns, how much it should wrapped.
* This is meant for longer text.
* The special instances need to initialize the super class with the
* columns
2015-06-04 14:11:11 +02:00
Christoph Heuel
7da2e32e3c
Integer is needed, not float
...
* The size of the image can only be integer, not float.
Using round to convert it back
2015-06-04 13:20:17 +02:00
Christoph Heuel
b99c076bae
Fix for string operation
...
* With Python version 3 data and text are treated different. Convert the
* text accordingly.
2015-05-19 02:52:55 +02:00
Christoph Heuel
afc6834082
After running 2to3 tool
2015-05-07 20:54:32 +02:00
Kristi
517435efad
Raising the right error when wrong charcode is used
2015-04-20 10:58:04 +01:00
Manuel F Martinez
708f7e97d1
fixed code tabulators
2014-05-20 23:50:06 -07:00
Manuel F Martinez
8a3850ea64
Added quad support
2014-05-20 22:43:40 -07:00