title: Python - Pybarcode Scanner
body: <pre><code>import barcode
  from barcode.writer import ImageWriter
  
  with open('/MyLocation/tnumfile.txt', 'r') as f:
      for line in f.readlines():    
          issn = barcode.get('issn', line, writer=ImageWriter()) 
          filename = issn.save(line)
  </code></pre>
  
  <p>What's the problem? Well this will generate how ever many barcodes as there are lines in the text document, naming them by the line it's walking through (1321157814) </p>
  
  <p>My problem is ISSN is generating poorly visible barcodes and I cannot transfer from ISSN to EAN, for example, without running into syntax errors and the documentation isnt helping!</p>
  
  <p><a href="https://i.stack.imgur.com/H0jz8.png" rel="nofollow noreferrer">Generated Barcode</a></p>