Really cool this project.
I copied the code to try the application. So I can add the printer as a Microsoft Printing device. The Driver I choose was the HP Color LaserJet 2500 PS Class Driver.
It seems like there is a problem with the job event. The operations look fine but if I send a job the ipp-printer software does not respond. Have you any idea what to change?
best
anton
'use strict';
var dhttp = require('debug')('http')
, dprint = require('debug')('printer');
var fs = require('fs');
var nonPrivate = require('non-private-ip');
var url = require('url');
var ip = nonPrivate() || nonPrivate.private();
var Printer = require('ipp-server');
var config = require('rc')('ipp-server', {
name: 'printer__12345', dir: __dirname+'/output', port: 9100
});
var p = new Printer(config)
p.on('job', function (job) {
dprint(job);
job.on('end', function(){
dbrint('job id: %d', job.id);
});
job.pipe(process.stdout);
});
p.on('operation', function (operation) {
dprint(operation);
});
p.server.on('listening', function () {
dhttp('ipp-printer listening on:', url.format({protocol: 'http', hostname: ip, port: config.port}));
});
dprint(p);
Hey all, dear Thomas,
Really cool this project. I copied the code to try the application. So I can add the printer as a Microsoft Printing device. The Driver I choose was the HP Color LaserJet 2500 PS Class Driver. It seems like there is a problem with the job event. The operations look fine but if I send a job the ipp-printer software does not respond. Have you any idea what to change?
best
anton