Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing #1

Closed
winwisely99 opened this issue Feb 21, 2020 · 5 comments
Closed

Printing #1

winwisely99 opened this issue Feb 21, 2020 · 5 comments
Labels
wontfix This will not be worked on

Comments

@winwisely99
Copy link

winwisely99 commented Feb 21, 2020

This looks like a really clean bring up of Native desktop stuff that lots of project needs.

Any plans for Printing.

Saw this: github.com/alexbrainman/printer

  • ONYL works on windows
@ncruces
Copy link
Owner

ncruces commented Feb 23, 2020

Printing is an interesting case.

The Windows printing dialog would be easy to wrap, but all it does is show a dialog. Which begs the question, what do you want to print and how? There's also no direct equivalent in either Zenity (Linux) or AppleScript (macOS).

I think this is would make more sense in a dedicated printing library, something that is able to print images/PDFs/HTMLs.

@ncruces ncruces added the wontfix This will not be worked on label Mar 19, 2020
@ncruces ncruces closed this as completed Mar 19, 2020
@ncruces
Copy link
Owner

ncruces commented Mar 20, 2020

Feel free to reopen if you have further insights into printing UIs.

@gedw99
Copy link

gedw99 commented Jan 1, 2022

@ncruces

I am building apps in golang.

In the app i want to allow users to print PDF's. the app is able to output PDFs.

SO i am wanting help / advice about bringup up the print dialogue and then as the user makes selections like like page size ( A4, A3, etc) , my app responds with a image ( that is a prox for the actual PDF) to be shown in the print preview.

There are a few other print and print preview interactions i imagine, like changing the orientation, choosing between a colour and black and white printer.

Then they finally print, the app sends the PDF to be printed.

I have a basic test harness here: https://github.com/gedw99/gio-print/blob/main/example/tree/tree.png
And the docs about how i think it could work here: https://github.com/gedw99/gio-print/tree/main/docs

GIOUI also has some native aspects like file explorer, notifications, and other things for Web, Desktop and Mobile that you might be interested in. https://github.com/gioui/gio-x

@ncruces
Copy link
Owner

ncruces commented Jan 2, 2022

Sorry, I don't think I can be of much help.

On Windows, I don't think the common dialog APIs support your use case very well (incl. print preview). In any event, your docs show you're in the right track there.

On Mac/Linux, as I said above, the stuff I currently use has nothing for print.

My desktop UIs are basically web based (I launch Chrome in app mode). So for printing I just use the browser, with a printing CSS.

@gedw99
Copy link

gedw99 commented Jan 2, 2022

No worries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants