title: How to pipe a stream using pdfkit with node js
body: <p>Before PDFkit 0.5 - the following worked for me (generating a pdf via pdfkit/printing via ipp to CUPS):</p>
  
  <pre><code>var ipp = require("ipp");
  var PDFDocument = require("pdfkit");
  
  var doc = new PDFDocument;
  doc.text("Hello World");
  
  doc.output(function(pdf)){
      var printer = ipp.Printer("http://127.0.0.1:631/printers/1");
      var file = {
          "operation-attributes-tag":{
              "requesting-user-name": "User",
          "job-name": "Print Job",
          "document-format": "application/pdf"
          },
          data: new Buffer(pdf, "binary")
      };
  
      printer.execute("Print-Job", file, function (err, res) {
          console.log("Printed: "+res.statusCode);
      });
  }
  </code></pre>
  
  <p>As of PDFkit 0.5 - the <code>output</code> method is deprecated - but I can't seem to find an example of using the new <code>pipe</code> method with my scenario. If I'm not using a browser, do I still need a module like <a href="https://github.com/devongovett/blob-stream" rel="noreferrer">blob-stream</a>?</p>