title: Node.js : How to add print job to printer
body: <p>I am developing a web application using node.js where i have a scenario to print some pdf files located in my local.</p>
  
  <p>Ex:</p>
  
  <pre><code>var ipp = require('ipp');
  var PDFDocument = require('pdfkit');
  
  //make a PDF document
  var doc = new PDFDocument({margin:0});
  doc.text(".", 0, 780);
  
  doc.output(function(pdf){
      var printer = ipp.Printer("http://NPI977E4E.local.:631/ipp/printer");
      var msg = {
          "operation-attributes-tag": {
              "requesting-user-name": "William",
              "job-name": "My Test Job",
              "document-format": "application/pdf"
          },
          data: pdf
      };
      printer.execute("Print-Job", msg, function(err, res){
          console.log(res);
      });
  });
  </code></pre>
  
  <p>I have referred the above example, but in that PDF is created but in my case i want to print the existing PDF files.</p>
  
  <p>Any suggestions ???</p>