title: Writing a string to pdf with PyPDF2
body: <p>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.</p>
  
  <p>I import PyPDF2</p>
  
  <p>I can create a pdf or a series pdf files with:</p>
  
  <pre><code>with open(path + fileName, 'wb') as out:
          pdf_writer.write(out)
  </code></pre>
  
  <p>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.</p>
  
  <p>How do I get string into my pdf?</p>
  
  <p>string = 'any old string'</p>