Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
docs for text2pdf
#2
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'
Output:
a2ps -B foo.txt --columns=1 -R --borders=no -o foo.ps && ps2pdf foo.ps
then open or print foo.pdf

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

Output:
cat foo.txt | iconv -c -f utf-8 -t ISO-8859-1 | a2ps -B --columns=1 -R --borders=no -o foo.ps
Reply


Messages In This Thread
docs for text2pdf - by Pedroski55 - Dec-16-2018, 07:57 AM
RE: docs for text2pdf - by Gribouillis - Dec-16-2018, 11:54 AM
RE: docs for text2pdf - by Pedroski55 - Dec-16-2018, 11:57 AM
RE: docs for text2pdf - by snippsat - Dec-16-2018, 12:24 PM
RE: docs for text2pdf - by snippsat - Dec-16-2018, 03:20 PM
RE: docs for text2pdf - by Larz60+ - Dec-16-2018, 06:43 PM
RE: docs for text2pdf - by Pedroski55 - Dec-21-2018, 01:38 AM
RE: docs for text2pdf - by snippsat - Dec-21-2018, 06:19 PM
RE: docs for text2pdf - by Pedroski55 - Dec-22-2018, 10:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is 2 a prime number? for loop & range fuction in python docs says yes, mine says no. allusernametaken 4 3,048 Nov-17-2019, 02:56 AM
Last Post: allusernametaken
  pickle docs say bytes in one place, strings in another Skaperen 2 2,249 Jul-29-2019, 05:13 PM
Last Post: Skaperen
  [split] Using this Python version of text2pdf jonsnow1221 1 2,206 May-07-2019, 07:48 PM
Last Post: micseydel
  Using this Python version of text2pdf Pedroski55 1 2,424 Apr-15-2019, 08:12 AM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020