GithubHelp home page GithubHelp logo

QrCode to zpl about bwip-js HOT 5 CLOSED

manuelbosi avatar manuelbosi commented on June 6, 2024
QrCode to zpl

from bwip-js.

Comments (5)

metafloor avatar metafloor commented on June 6, 2024

I recommend you experiment with scale to see how it correlates with the magnification factor used by ^BQ. The height and width options simply change scaleY and scaleX, sometimes unpredictably.

from bwip-js.

manuelbosi avatar manuelbosi commented on June 6, 2024

@metafloor thanks for your reply.
Is it also possibile to render the qr code by handling custom dpi value manually?
For example I need to render the qrcode using a 600dpi value

from bwip-js.

metafloor avatar metafloor commented on June 6, 2024

Just multiply scale by a factor predefined for each dpi. For example, 2 for 200dpi, 3 for 300dpi, and 6 for 600dpi.

from bwip-js.

manuelbosi avatar manuelbosi commented on June 6, 2024

@metafloor So the value I set in the RenderOptions object is scale: myScale * myDpiScale, right?

from bwip-js.

metafloor avatar metafloor commented on June 6, 2024

Have you worked with different dpi zpl printers? Typically, the zpl rendering engine does not scale for dpi. The scaling for dpi is done in the ZPL code - by the developer. Specifically, using ^BY to control module width and for qrcode, the magnification factor in the ^BQ command (which does have its defaults based on dpi).

from bwip-js.

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.