This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set page margins correctly via header/footer heights for multiple URLs
In 80cbcc5, the ability for auto-calculation of the header/footer height was implemented. However, in case of multiple page objects (i.e. URLs) being present for conversion, the calculated height for only the FIRST page object was used -- the heights for the second and further page objects were being ignored. In case a cover page was specified first (which has no header/footer by design) without an explicit margin, then the top/bottom margins would be set to zero -- which would hide the header/footer content. The solution is to use the maximum value across all the page objects, so that there is enough space for the header content across all page objects. Fixes #1676
- Loading branch information
6a13a51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this patch enforce a header and footer-sized margins on the cover page?
6a13a51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexagrf: Yep, I think it does. But I don't think that can be avoided as the margins are defined at the printer level.