Printing from offscreen document

58 views
Skip to first unread message

Alexander Gerber

unread,
Mar 14, 2025, 4:46:10 PM (4 days ago) Mar 14
to Chromium Extensions
Is it possible to open the print dialog and print from an offscreen document? I messed with it a bit and can't seem to make it work.

Let me know what you think.

woxxom

unread,
Mar 14, 2025, 7:38:00 PM (4 days ago) Mar 14
to Chromium Extensions, Alexander Gerber
Shouldn't be possible because it's invisible.

Alexander Gerber

unread,
Mar 14, 2025, 8:08:24 PM (4 days ago) Mar 14
to Chromium Extensions, woxxom, Alexander Gerber
Gotcha. Is there any way to print from the popup page?

woxxom

unread,
Mar 14, 2025, 8:12:01 PM (4 days ago) Mar 14
to Chromium Extensions, Alexander Gerber, woxxom
I don't think so. Either open a new tab via chrome.tabs.create or a new popup window via chrome.windows.create using 'print.html' where this file is a part of your extension that gets the data from the background script via messaging/storage and invokes the print dialog.
Reply all
Reply to author
Forward
0 new messages