Add Save page as PDF action to QuickActions
Categories
(Firefox :: Address Bar, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox122 | --- | fixed |
People
(Reporter: daleharvey, Assigned: daleharvey)
References
Details
Attachments
(1 file)
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•1 year ago
|
||
David, are you a good person to ask about how I would trigger the print dialog to show ensuring the save to pdf option was selected? This is the code I currently have but it is going straight to the printer right now. Cheers
let psService = Cc[
"@mozilla.org/gfx/printsettings-service;1"
].getService(Ci.nsIPrintSettingsService);
let printSettings = psService.createNewPrintSettings();
printSettings.printerName = "Mozilla Save to PDF";
lazy.BrowserWindowTracker.getTopWindow().gBrowser.selectedTab.linkedBrowser.browsingContext
.print(printSettings);
Comment 2•1 year ago
|
||
Hm, unfortunately don't know too much about frontend/chrome code.
That said, perhaps printSettings.outputFormat
is what you want to modify? This seems relevant..
Assignee | ||
Comment 3•1 year ago
|
||
Cheers David, Mark is there any chance you know who to ask about this? (seen you on a few reviews)
(I tried the above printSettings.outputFormat but got the same results)
I can open the print dialog with
lazy.BrowserWindowTracker.getTopWindow()
.document.getElementById("cmd_print")
.doCommand();
But cant find a way to define settings using that
Assignee | ||
Comment 4•1 year ago
|
||
Comment 7•1 year ago
|
||
bugherder |
Comment 8•1 year ago
|
||
:daleharvey could you consider nominating this for a release note? (Process info)
Assignee | ||
Comment 9•1 year ago
|
||
While this is enabled in nightly, we aren't looking to promote the feature as we are in discussion with rolling it into another feature and this was landed just to make sure it was included in the migration so I think we may want to skip the release notes for this particular patch.
Description
•