title: iOS swift 4.0 print from BLE thermal printer
body: <p>I want to take print out from thermal printer by using BLE command from iOS App. For that, I have used Printer library from COCOAPODS. I am using cashino ptp-ii printer to take print out from. In my code when I start printing data(Image) on button click, printer just starts printing blank pages and doesn't stop printing and I've to manually turn it off to stop it. Below is my code that I've used to print:</p>
  
  <pre><code>  let image = UIImage(named: "demo")!
  
      if pm.canPrint {
  
          if let data = UIImageJPEGRepresentation(image, 1.0) {
  
              var receipt = Receipt(
                  data
              )
  
              receipt.feedLinesOnTail = 2
              receipt.feedPointsPerLine = 60
              pm.print(receipt)
          }
  
      } else {
  
          performSegue(withIdentifier: "ShowSelectPrintVC", sender: nil)
      }
  </code></pre>