Commit Graph

50 Commits

Author SHA1 Message Date
Davis Goglin a1180e428e Merge github.com:DavisGoglin/python-escpos into davisgoglin-merge 2015-12-30 13:47:16 -08: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
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
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
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 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
Nathan Bookham 6fdea1234d 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.
2014-08-16 14:28:20 +01:00
Stephan Sokolow 64c36a74ed Allow bandsize to be varied in fullimage() 2014-08-15 20:17:35 -04:00
Stephan Sokolow 2a8f852c68 Ensure QR codes have a border large enough for successful scan
(The QR code spec requires a border at least 4*box_size thick but we can't
 just set border=16 because that results in a QR code more than 255px tall
 and I'm not yet ready to use fullimage() as a backend for it)
2014-05-22 01:41:02 -04:00
Stephan Sokolow 6e72d2778d Allow bypassing the resizing and height-cropping steps in fullimage() 2014-05-22 01:08:58 -04:00
Stephan Sokolow 5b1e6348e5 Accept "CODABAR" as an alias for "NW7" in barcode() 2014-05-22 00:55:09 -04:00
Stephan Sokolow 9885deaa59 Make BarcodeSizeError and BarcodeTypeError display the erroneous value
(MUCH more helpful for debugging)
2014-05-22 00:55:09 -04:00
Stephan Sokolow b5f68f6895 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)
2014-05-22 00:55:09 -04:00
Manuel F Martinez 8a3850ea64 Added quad support 2014-05-20 22:43:40 -07:00
Manuel F Martinez 34f562d64a Added density support 2014-05-20 22:31:49 -07:00
Manuel F Martinez f6f1a4278f Fixed tabs and added charcode tables 2014-05-20 22:15:54 -07:00
Davis Goglin fa8d961e6d google code revision ef4c58851474 (Added quad-area characters) 2014-03-14 09:18:23 -07:00
freeyoung 6a4fbc191f add Chinese support via cp936 2014-03-14 02:05:41 +08:00
freeyoung 9f7e5861cd adjust import order and fix `qr` method 2014-03-14 01:58:55 +08:00
freeyoung b68b3dc6c0 import Image from PIL, or Pillow 2014-03-14 01:51:14 +08:00
Manuel F Martinez a2dcd45c15 Added quad-area characters 2014-02-23 23:09:35 -08:00
Manuel F Martinez 27b393d45c Added exception for PIL import 2014-02-23 21:10:34 -08:00
Davis Goglin b8102acd45 Merge noio/python-escpos with latest google code
Merge branch 'master' of https://github.com/noio/python-escpos

Conflicts:
	escpos/__init__.py
	escpos/escpos.py
	escpos/exceptions.py
	escpos/printer.py
2013-08-22 08:37:10 -07:00
Davis Goglin f8c34e8748 imported latest google code repo 2013-08-22 08:16:57 -07:00
Manuel F Martinez 9023d22e71 Added syntax to have print working on windows 2013-05-30 08:56:33 -07:00
Manuel F Martinez b0097da16f Fixed font set 2013-05-30 08:47:30 -07:00
Manuel F Martinez 64e5ea5151 Added fixed tabs 2013-03-14 01:34:48 -07:00
Manuel F Martinez 5295d5c90b Added qr functionality 2013-03-14 01:31:07 -07:00
Manuel F Martinez 69cea54818 Added proper installer 2013-03-13 23:22:43 -07:00
Thomas van den Berg 7d4ef744de fix band printing 2013-02-27 23:18:49 +01:00
Thomas van den Berg 5db192751f remove import PIL 2013-02-27 23:17:56 +01:00
Thomas van den Berg b4f8de002c add function to print full images including resizing 2013-02-27 15:10:34 +01:00
Thomas van den Berg 126dde8a7e add support for printing PIL image objects directly 2013-02-27 13:42:32 +01:00
Thomas van den Berg a6c72adc58 copy files from google code repo 2013-02-27 13:31:18 +01:00