title: Print from python to dot-matrix printer
body: <p>I need to print to a dot-matrix printer, with continuous-sheet paper.</p>
  
  <p>My program is written in Python 2.7 and runs in Windows.</p>
  
  <p>The printer is connected to a parallel port.</p>
  
  <p>I need to print text, not images, however I need to set font family and size, and the exact size of the paper.</p>
  
  <p>I absolutely <strong>don't want to use win32api and/or the Windows driver</strong>, because it has a number of issues (main one, it cannot correctly set the paper height).</p>
  
  <p>I guess I should send some escape sequence directly to the printer. How should I do?</p>
  
  <p>If it can be useful, this is the exact printer model:
  EPSON LX-300+ /II
  <a href="https://www.epson.it/products/printers/dot-matrix-printers/epson-lx-300ii" rel="nofollow noreferrer">https://www.epson.it/products/printers/dot-matrix-printers/epson-lx-300ii</a></p>