Skip to content
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

Update attributes.js #77

Merged
merged 1 commit into from
Aug 17, 2019
Merged

Conversation

blairjanis
Copy link
Contributor

I need to add this print-scaling line to get scaling to work in my ipp implementation. Can we add it to the master branch so I don't need to manually add it every time I deploy?

I need to add this print-scaling line to get scaling to work in my ipp implementation.  Can we add it to the master branch so I don't need to manually add it every time I deploy?
@williamkapke williamkapke merged commit 65dd94a into williamkapke:master Aug 17, 2019
@cah-brandon-trebbien
Copy link

@blairjanis I am trying to use this functionality, but getting the below response back. Is there something I'm missing here?

fs.readFile(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);
});

Response:
The spec is not clear on how to handle tag 16: print-scaling=undefined. Please open a github issue to help find a solution!
{ version: '2.0',
statusCode: 'successful-ok-ignored-or-substituted-attributes',
id: 19048765,
'operation-attributes-tag':
{ 'attributes-charset': 'utf-8',
'attributes-natural-language': 'en-us',
'status-message': 'successful-ok-ignored-or-substituted-attributes' },
'unsupported-attributes-tag': { 'print-scaling': undefined },
'job-attributes-tag':
{ 'job-uri': 'XXXXXX',
'job-id': 1543,
'job-state': 'processing',
'job-state-reasons': 'none',
'job-state-message': 'none',
'number-of-intervening-jobs': 0 } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants