Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(page): move page.pdf to protocol streams #4587

Merged
merged 3 commits into from Jun 15, 2019

Conversation

aslushnikov
Copy link
Contributor

This lets transferring massive PDF files over the protocol.

Fix #4563

This lets transferring massive PDF files over the protocol.

Fix puppeteer#4563
@aslushnikov aslushnikov changed the title feat(page): move page.pdf to PDF streams feat(page): move page.pdf to protocol streams Jun 14, 2019
/**
* @param {!Puppeteer.CDPSession} client
* @param {string} handle
* @param {?string} path
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@return

Copy link
Collaborator

@JoelEinbinder JoelEinbinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will break pdfs against stable for awhile. Not a problem, but something people will complain about anyway.

@aslushnikov aslushnikov merged commit 955e7cb into puppeteer:master Jun 15, 2019
@aslushnikov aslushnikov deleted the pdf-stream branch June 15, 2019 05:36
anirudh-mehta added a commit to anirudh-mehta/puppeteer-pdf that referenced this pull request Jun 22, 2019
A recent pull request released as part of version 1.18 to support large pdf's in puppeteer isn't compatible with Chrome Stable version. Forcing to 1.17

PR: puppeteer/puppeteer#4587
Issue: puppeteer/puppeteer#4609
@nobleach
Copy link

Not a problem, but something people will complain about anyway.

I imagine folks will complain if the API changes and it's not documented anywhere.

Am I correct to assume that page.pdf() no longer returns a <Promise<Buffer>>?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Too large write data is pending: size=725124416, max_buffer_size=268435456
3 participants