Skip to content

Feature: Allow silent printing #3259

Open

Description

@cstenglein

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

First of all, thank you very much for this project. :)

As a devleoper, I would like to have the option to print a page "silently", meaning without showing the print dialog.
This is usually used in kiosk environments, e.g. for printing photos.

Electron already does this with the webContents.print function.

Wails only has the WindowPrint function which calls window.print (see frontend.go.

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. leaanthony commented on Feb 15, 2024

    @leaanthony
    Member

    Great suggestion 👍 Do you know how electron implemented it? My guess is "outside the browser"...

  2. cstenglein commented on Feb 15, 2024

    @cstenglein
    Author

    Since you are using WebView2 for the windows part, you could print silently there:

    https://learn.microsoft.com/en-us/microsoft-edge/webview2/how-to/print?tabs=win32cpp#the-print-method-to-customize-printing

    See the Print statement:

    Silently prints the current top-level document in the WebView2 using optional programmatically specified print settings to a printer. You can use this to build your own Print Preview dialog or print experience.

    Do you know how electron implemented it? My guess is "outside the browser"...

    The closest I can find is the Print method in electron_api_web_contents.cc, which collects the options and forwards the job to a print_task_runner_.

  3. Relent97 commented on Jul 10, 2025

    @Relent97

    Hi guys, please is there a PR where this was eventually resolved? Would be great to see the config thank you so much!

  4. leaanthony commented on Jul 12, 2025

    @leaanthony
    Member

    No but if you find out how to do it, that would be great.

  5. leaanthony commented on Feb 1, 2026

    @leaanthony
    Member

    This feature request has been added to our v3 Backlog. As v3 is now our primary focus, all feature development is being directed there.

    You can track progress on the v3 Backlog project board: v3 Backlog

    Thanks for your patience!

  6. moved this to Backlog in v3 Backlogon Feb 1, 2026
  7. LianSchedule commented on Aug 30, 2026

    @LianSchedule

    Dear Developer, could you also add the API printToPDF while developing this feature? Thank you very much.

  8. added this to the Future milestone on Oct 13, 2026
  9. taliesin-ai commented on Oct 15, 2026

    @taliesin-ai
    Collaborator

    Hi there! Thanks for the suggestion. I'll leave this open for us to consider when planning future work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions