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

Setting paper size and margins in webpdf #1660

Open
callegar opened this issue Oct 15, 2021 · 2 comments
Open

Setting paper size and margins in webpdf #1660

callegar opened this issue Oct 15, 2021 · 2 comments
Labels

Comments

@callegar
Copy link

Hi,
there seems to be no documentation on how to set the paper format and the margins when using webpdf.

The default margins appear absolutely too tight for any printout (in fact there seems to be no margin at all on the top and the bottom of the page) and it is unclear how one is expected to adjust them. Similarly it is unclear how to set the paper size.

Do you need to make a custom template for that? Should that "import" somehow the default template after overriding some styling?

@JWock82
Copy link
Contributor

JWock82 commented Sep 26, 2022

I have the same issue. The margins are really tight. On the second sheet of my pdf the top margin isn't even there.

image

JWock82 added a commit to JWock82/nbconvert that referenced this issue Nov 9, 2022
When converting to webpdf the margins on the resulting printout are tiny. After a page break there are no margins at all. This code fixes that by placing a 0.5 inch margin on all sides of the printed page. This fixes issue jupyter#1660.
@sw
Copy link

sw commented Dec 20, 2023

Duplicates #392, at least as far as paper size is concerned. I would love to have this as well.

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

3 participants