Comments (5)
Hi Batajus,
I think your issue is related to the issue I just opened. (#43)
As a work around you can see my example of writing out the message to the printer manually.
from ipp.
I believe I have #43 fixed now.
For more information on how to select a media source, see: #46 (comment)
from ipp.
I found another solution for my issue:
var ipp = require('./../ipp');
var PDFDocument = require('pdfkit');
var concat = require("concat-stream");
var doc = new PDFDocument({margin:0});
doc.text(".", 0, 0);
doc.pipe(concat(function (data) {
var printer = ipp.Printer("http://cp02.local.:631/ipp/printer");
var msg = {
"operation-attributes-tag": {
"requesting-user-name": "Bumblebee",
"job-name": "whatever.pdf",
"document-format": "application/pdf"
},
"job-attributes-tag":{
"media": [ "tray-2" ] // <- This worked for me
}
, data: data
};
printer.execute("Print-Job", msg, function(err, res){
console.log(err);
console.log(res);
});
}));
doc.end();
I used this (4.2.11) for my solution.
But i will try your fix as soon as possible and inform you about the results ;-)
from ipp.
@Batajus, just a recommendation: if you are going to quote an IPP specification for an IPP attribute definition, for instance "job-priority", you might want to quote the latest non-obsolete revision for IPP, which is RFC 8011 section 5.2.1.
from ipp.
@wifiprintguy thanks for the tipp ;-)
I referenced the old one, because I have used it and not the latest one. But here's the link to the respective paragraph in the new one.
@williamkapke, I tried the latest version and now everything works fine, so thanks for the fix =)
from ipp.
Related Issues (20)
- Bad IPP Response crashes Node.JS Process
- My print only supports application/octet-stream - how can I print an image / pdf ? HOT 13
- printer-strings-uri=undefined
- unsupported-attributes-tag
- The spec is not clear on how to handle tag HOT 1
- Can't set tray-2 HOT 1
- Cannot install the package ipp on Windows
- PDF output has wrong font HOT 5
- Print-Scaling Unknown Attribute HOT 6
- Resolution Syntax HOT 1
- "Wrong Roll Type" on every possible media/print-scaling configuration HOT 3
- Copyright problem when scanning with Blackduck
- separator-sheets-type option isn't handled correctly
- characters that have a code upper than 127 are not printed correctly HOT 1
- Set-Printer-Attribute
- node version and dependecies update HOT 2
- client-error-document-format-not-supported HOT 1
- charset option
- printer does not produce output on first trigger
- paper cutting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipp.