GithubHelp home page GithubHelp logo

Print API about gluon HOT 11 CLOSED

tmblog avatar tmblog commented on August 10, 2024
Print API

from gluon.

Comments (11)

CanadaHonk avatar CanadaHonk commented on August 10, 2024 1

Will make the issue/plan into a more generic print API.

from gluon.

CanadaHonk avatar CanadaHonk commented on August 10, 2024 1

Don't mind how many users, as long as I make one person happy I'm down to implement it haha, thanks for the request. Might be in next release (0.13) depending on difficulty.

from gluon.

tmblog avatar tmblog commented on August 10, 2024 1

Looking forward to it already! Have a good one whatever it's you're doing. Thanks again.

from gluon.

CanadaHonk avatar CanadaHonk commented on August 10, 2024

Will look into.

from gluon.

tmblog avatar tmblog commented on August 10, 2024

Thanks, here's the NWJS docs on it https://docs.nwjs.io/en/latest/References/Window/#winprintoptions
autoprint {Boolean} whether to print without the need for user’s interaction; optional, true by default

from gluon.

CanadaHonk avatar CanadaHonk commented on August 10, 2024

Might make it a new optional "plugin"-style dependency like @gluon-framework/widevine to avoid adding a few dependencies most won't need, will get some opinions from the Discord.

from gluon.

tmblog avatar tmblog commented on August 10, 2024

Will be great, either way and thank you! In terms of popularity try searching "Tauri Silent print", "Electron silent print", "NWJS silent print", "neutralino silent print", "js silent print", etc. There's a decent demand IMO. This might win you over a fair few users.
But willl leave that to you, Thanks again!

from gluon.

CanadaHonk avatar CanadaHonk commented on August 10, 2024

Going to implement an API for allowing printing/saving to a PDF, which then allows you to use a library like pdf-to-printer or unix-print to print with a printer yourself to avoid having to deal with platform-specific features and added dependencies.

from gluon.

CanadaHonk avatar CanadaHonk commented on August 10, 2024

Window.page.printToPDF has been added! Typedef is already updated for how to use, and docs will be added soon.

from gluon.

tmblog avatar tmblog commented on August 10, 2024

Thank you so much! Where can I find the typedef can't wait to try it.

from gluon.

CanadaHonk avatar CanadaHonk commented on August 10, 2024

https://github.com/gluon-framework/gluon/blob/main/gluon.d.ts#L190-L209

from gluon.

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.