I will read 130+ excel files in as lines of strings in Python. I want to write each line to a pdf. The whole excel file is just 1 A5 landscape sheet. I can batch print pdfs in a bash shell easily.
I import PyPDF2
I can create a pdf or a series pdf files with:
with open(path + fileName, 'wb') as out: pdf_writer.write(out)
but I'm too dumb to see how to write a string to this pdf. If I try to write a string variable, I just get errors. If I convert the string to bytes, I just get errors.
How do I get string into my pdf?
string = 'any old string'