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

Set paper dimensions of exported PDF #210

Open
jmuheim opened this issue May 13, 2020 · 2 comments
Open

Set paper dimensions of exported PDF #210

jmuheim opened this issue May 13, 2020 · 2 comments
Labels

Comments

@jmuheim
Copy link

jmuheim commented May 13, 2020

Hello

While I can set the dimensions of exported screenshots, I seem not to be able to do this for the exported PDF.

By default, the dimensions of the PDF seems to be not the default 4:3 that I need for printing on paper, but it seems to be some widescreen format, which leads to some ugly display problems. For example, while the TOC looks nice in the exported screenshot...

image

...it looks mis-positioned (too low) in the PDF:

image

How can I fix this, so the PDF uses a 4:3 dimension?

@jmuheim
Copy link
Author

jmuheim commented May 13, 2020

Oh, I just found the option:

$ decktape -s 1600x1200

What numbers would you recommend to use for traditional A4 prints?

@astefanutti
Copy link
Owner

We could add a format option to the CLI that would enable passing standard print formats, and use the Puppeteer API:

https://github.com/puppeteer/puppeteer/blob/v3.0.4/docs/api.md#pagepdfoptions

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

No branches or pull requests

2 participants