node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

print-url

print-url

Given a URL, fetch the contents of URL, convert to PDF then print with LP.

install

npm install print-url

example

var printUrl = require('print-url');
 
printUrl('http://mysite.com/partner/invoice/12345.html', function (err, jobid) {
    if (err) {
        return console.log('Error encountered', err);
    }
 
    console.log('Job queued for printing', jobid);
});

license

MIT