I have a string with the text precisely spaced the way I want it displayed. It’s sort of an ascii art project. I want to convert this text to a pdf so I can print a poster with the text at my local printshop.
The font needs to be fixed width and there are no tabs or anything like that. The lines end in the ‘\n’ character. There are several space characters.
The image is several hundred characters wide and several hundred high. So, it doesn’t fit in the space of a typical page.
How do I do this in python?
Try the module pyPdf, might do the trick for you!
Or pyfPdf, that allows you to set the font when you create new PDF-files (setFont example)
From pyfPdf Tutorial Page :