Dec-16-2018, 11:54 AM
(This post was last modified: Dec-16-2018, 11:54 AM by Gribouillis.)
I don't know this module, is it the one from pypi ? It looks pretty basic, you can simply open the python files and look into the module to see what you can import.
If you like an old solution in linux, you could try a2ps combined with ps2pdf, for example for file 'foo.txt'
a2ps was designed to print computer programs, but for simple emails, it should work well.
If there is a problem with the utf8 encoding you can try
If you like an old solution in linux, you could try a2ps combined with ps2pdf, for example for file 'foo.txt'
Output:a2ps -B foo.txt --columns=1 -R --borders=no -o foo.ps && ps2pdf foo.ps
then open or print foo.pdfa2ps was designed to print computer programs, but for simple emails, it should work well.
If there is a problem with the utf8 encoding you can try
Output:cat foo.txt | iconv -c -f utf-8 -t ISO-8859-1 | a2ps -B --columns=1 -R --borders=no -o foo.ps