This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # based on https://github.com/amber-sixel/PythonCatPrinter.git | |
| # | |
| # can be used as a raw postscript printer (a4, one page only) on port 9100 | |
| # | |
| # status : curl --location --request GET 'localhost:5000' | |
| # | |
| # curl --location --request POST 'localhost:5000' \ | |
| # --form 'image=@"/image.jpg"' \ #optional | |
| # --form 'text="hello world"' \ #optional |