Open Bug 1549479 Opened 6 years ago Updated 2 years ago

[meta] Page.printToPDF

Categories

(Remote Protocol :: CDP, task)

task

Tracking

(Not tracked)

People

(Reporter: ato, Unassigned)

References

(Depends on 3 open bugs, )

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
You need to log in before you can comment on or make changes to this bug.