Comments (11)
Will make the issue/plan into a more generic print API.
from gluon.
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.
Looking forward to it already! Have a good one whatever it's you're doing. Thanks again.
from gluon.
Will look into.
from gluon.
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.
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.
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.
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.
Window.page.printToPDF
has been added! Typedef is already updated for how to use, and docs will be added soon.
from gluon.
Thank you so much! Where can I find the typedef can't wait to try it.
from gluon.
https://github.com/gluon-framework/gluon/blob/main/gluon.d.ts#L190-L209
from gluon.
Related Issues (20)
- Window events
- Custom useragent HOT 1
- How do I package a Gluon app as a native exectuable? HOT 1
- Sample app crashing HOT 3
- HTTPS required for gluon apps? HOT 5
- Change behavior of deno branch to create 'gluon_data/chrome' in current directory HOT 1
- Thorium as a recommended gluon brower-base HOT 5
- Switch CDP -> WebDriver BiDi
- IPC will not be available after page refresh HOT 1
- Error on startup of first example HOT 6
- Links that open in new tab, don't open new browser in firefox, while in edge they do
- Add brower support
- Possible to Use Bundled Wep App (e.g. Vue) Instead of URL HOT 1
- Automatic browser failure fallback
- System installer
- CDP reply error.
- Using gluon on existing Node.js app
- ReCaptcha v2 doesnt work HOT 1
- Browser unsupported for nextcloud server site HOT 1
- Project Status 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 gluon.