Closed Bug 1549479 Opened 5 years ago Closed 7 months ago

[meta] Page.printToPDF

Categories

(Remote Protocol :: CDP, task)

task

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ato, Unassigned)

References

()

Details

(Keywords: meta, Whiteboard: [method=Page.printToPDF])

No description provided.
Blocks: puppeteer
Keywords: meta
Whiteboard: [method=Page.printToPDF]

Note that there is a WebExtension API which allows to do that for add-ons:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/saveAsPDF

It's implementation can be found here:
https://searchfox.org/mozilla-central/rev/11d9c7b7fa82fdfb8ac2a8f0864e9d8d5fe2b926/browser/components/extensions/parent/ext-tabs.js#1304

It uses the underlying PrintSettingsService to print the document to a PDF file. I assume that we could make use of it too.

Whiteboard: [method=Page.printToPDF] → [method=Page.printToPDF][puppeteer-alpha]
No longer blocks: puppeteer-examples
Whiteboard: [method=Page.printToPDF][puppeteer-alpha] → [method=Page.printToPDF]
Component: CDP: Page → CDP
Severity: normal → S3

Everything that we could do for this API is done.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.