-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print-Scaling Unknown Attribute #78
Comments
Can the latest master branch be pushed to npm? |
When I do npm install building from latest copy of master I am now getting the below: The spec is not clear on how to handle tag 16: print-scaling=undefined. Please open a github issue to help find a solution! |
HP LaserJet MFP M426fdw support too scaling
|
Print scaling is an invalid attribute, but you can add the media attribute to specify the paper size. Although this attribute has a default value, it seems that this package did not pass in this default value by default, resulting in incomplete display during printing const printJob = { Perfect solution to size issues during printing! |
Bump: Can the latest master branch be pushed to npm? |
Getting the below error submitting a print request.
/home/vcap/app/node_modules/ipp/lib/serializer.js:73
if(!groupName) throw "Unknown attribute: " + name;
^
Unknown attribute: print-scaling
If I remove the attribute, print succeeds but is not scaling to fit the page. I see print-scaling is listed under the supported attributes in the serializer so not sure what is causing the issue. Here is the request being submitted:
fs.readFile('/path/to/file', (err, pdf) => {
if (err) throw err;
var msg = {
"operation-attributes-tag": {
"requesting-user-name": "Name",
"job-name": "MyTestJob",
"document-format": "application/pdf"
},
"job-attributes-tag": {
"sides": "one-sided",
"finishings": "staple",
"print-scaling": "fit"
},
data: pdf
};
printer.execute("Print-Job", msg, function(err, res){
console.log(res);
});
The text was updated successfully, but these errors were encountered: