Giter VIP home page Giter VIP logo

Comments (6)

cah-brandon-trebbien avatar cah-brandon-trebbien commented on August 11, 2024

Looks like this option got added in the one of the pull requests from last month. #77

65dd94a

from ipp.

cah-brandon-trebbien avatar cah-brandon-trebbien commented on August 11, 2024

Can the latest master branch be pushed to npm?

from ipp.

cah-brandon-trebbien avatar cah-brandon-trebbien commented on August 11, 2024

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.

nikes avatar nikes commented on August 11, 2024

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.

de-Lovey avatar de-Lovey commented on August 11, 2024

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.

superdrenner avatar superdrenner commented on August 11, 2024

Bump:

Can the latest master branch be pushed to npm?

from ipp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.