Open aleperuz opened 1 year ago
Hey @aleperuz,
I tried the same, although i am getting the following.
Fixed the line as below.
How had you fixed this?
@deFr0ggy yes use python 2 and add the fixes from another issue
@deFr0ggy
Try this one:
edit the script that will send commands in the language of your printer (pjl.py, pcl.py or postscript.py) Add this: import sys reload(sys) sys.setdefaultencoding('iso-8859-1')
Thanks @aleperuz , just got it to resolve this, it's printing the data from "*.ps" file provided now!
it the script that will send commands in the language of your printer (pjl.py, pcl.py or postscript.py) Add this: import sys reload(sys) sys.setdefaultencoding('iso-8859-1')
Makes sense! Thanks!
@aleperuz can you help me on discord? discord:defacermaster
@deFr0ggy help me on discord please discord:defacermaster
When i try to print a photo with pret the program crush with error.
can only concatenate str (not "bytes") to str
i modified the program to make sure that the given variable is a string.self.send(c.UEL + str(data) + c.UEL)
If I print simple text it prints without errors. So I understood that with pret you can only print text, even if I don't understand why since there is the variable that converts pdf and images into files that the printer understands. Hope this problem is solved.