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

printToPDF DPI problem #82

Closed
mc-bro opened this issue Jun 22, 2017 · 2 comments
Closed

printToPDF DPI problem #82

mc-bro opened this issue Jun 22, 2017 · 2 comments

Comments

@mc-bro
Copy link

mc-bro commented Jun 22, 2017

Hello!

I'm looking for some advice about my problem.
I've got huge webpage which is in 300DPI and should be 12.5inch x 18.5x. (Its 3750px x 5550px)
By using Page.printToPDF I need to set paper size: 39inch x 57.8inch. As I know, there is no option to change DPI property and it's constant.
My only idea was to use scale option, but it lowers quality, slightly breaks some HTML elements and PDF weight stays the same. I think its because of many high resolution images. So my idea seems to be sensless for my case.

Do you have any workaround or proper solution for such cases?

@kensoh
Copy link

kensoh commented Jul 15, 2017

Hi @Groarq I'm not an expert with the CDP, are the Emulation domain -> setDeviceMetricsOverride method -> deviceScaleFactor and scale properties able to do anything for your use case? https://chromedevtools.github.io/devtools-protocol/1-2/Emulation/

@TimvdLippe
Copy link
Contributor

This issue was moved to ChromeDevTools/devtools-protocol#93

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

No branches or pull requests

3 participants