Comments (6)
Looks like this option got added in the one of the pull requests from last month. #77
from ipp.
Can the latest master branch be pushed to npm?
from ipp.
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!
{ 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': '#######',
'job-id': 1543,
'job-state': 'processing',
'job-state-reasons': 'none',
'job-state-message': 'none',
'number-of-intervening-jobs': 0 } }
from ipp.
HP LaserJet MFP M426fdw support too scaling
{
"job-creation-attributes-supported": [
"copies",
"finishings",
"sides",
"orientation-requested",
"media",
"print-quality",
"printer-resolution",
"output-bin",
"media-col",
"output-mode",
"ipp-attribute-fidelity",
"job-name",
"page-ranges",
"multiple-document-handling",
"pdf-fit-to-page",
"print-scaling",
"print-color-mode",
"print-content-optimize",
"manual-duplex-sheet-count",
"margins-pre-applied",
"pclm-source-resolution"
],
"print-scaling-default": "auto",
"print-scaling-supported": [
"auto",
"auto-fit",
"fill",
"fit",
"none"
]
}
from ipp.
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 = {
'operation-attributes-tag': {
'attributes-charset': 'utf-8',
'requesting-user-name': 'User',
'job-name': 'Print-Job',
'document-format': 'application/pdf'
},
'job-attributes-tag': {
media: 'iso_a4_210x297mm'
},
data: buffer
}
Perfect solution to size issues during printing!
from ipp.
Bump:
Can the latest master branch be pushed to npm?
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
- 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.