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

No page margins / paper size options #154

Open
BrainSlugs83 opened this issue Jun 17, 2024 · 1 comment
Open

No page margins / paper size options #154

BrainSlugs83 opened this issue Jun 17, 2024 · 1 comment

Comments

@BrainSlugs83
Copy link

This is a feature request, as it appears that there is no page size or margin options, which presents visually ugly PDF documents, and is problematic for mass printing / presentation on same devices.

The output ends up looking like this:
image

It would be great if we could specify paper size and margins, as that would solve these issues.

Thanks!

@jhvanderven
Copy link

I had the same concerns. I even added margins to the css body/html tag: margin: 1cm 1cm 1cm 1cm.... But then I stumbled upon the header and footer template and now I generate the pdf with:

--header-template "<p></p>" --footer-template "<p></p>"

and the pages look good. No need to put something in the css in my case.

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

2 participants