Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Add options to specify header/footer margin #3853

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yoursdearboy
Copy link

The PR adds options --header-margin and --footer-margin to specify top/bottom margin for header/footer (not to be confused with document top/bottom margin).
This is useful if you have a dynamic header and don't know its size to use --margin-top option. So omitting --margin-top and using --header-margin instead will get the job done. They can be used simultaneously.
Probably it solves this issue #2940.

I wonder whether it can be solved better than this way. Maybe options can be renamed to better reflect their meaning.

@assendk
Copy link

assendk commented Jan 8, 2021

Any chance to this be resolved?
The custom/dynamic headers or footers heights are very important for the pdf generation. Especially if is possible have a different footer on the last page. I know that by design we don't know the height of the last page so it's impossible to align some content/footer at the bottom part of the last page, near the footer.
Probably instead of --header-margin is better to be named --header-height
Thank you

@ashkulz
Copy link
Member

ashkulz commented Jan 8, 2021

Why can't you use the spacing?

@assendk
Copy link

assendk commented Jan 10, 2021

Sorry, its my fault. At the moment I'm unable to implement this layout and align the "content2" div to the bottom of the second page. Is it possible to be done with your amazing app?
https://i.imgur.com/Dj6x0nK.png

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

Successfully merging this pull request may close these issues.

None yet

3 participants