Extra whitespace at top of page when exporting PDF
It seems like regardless of whether or not I use custom processors or preprocessors, regardless of what CSS style I am using, and regardless of what value I set for the margins when configuring the Export settings, there is in all cases extra whitespace at the top of the page of Paginated PDF exports. This means that even when I set all margins to 0, there will be significantly more whitespace at the top of a page compared to the sides or the bottom. This is a problem not only for the first page of the PDF, but for all following pages as well. I cannot find any way to reduce this whitespace fixed at the top of the when setting negative values for the margins. And when setting negative values for the margins, the tops of the printed letters appear clipped off at the top, even though there appears to be enough empty space on the page for the full letter to be printed.
I would like to shift everything printed on the Paginated PDF document upwards by about ~20 point, and I cannot find any way to do it, even though there appears to be available space on the page. Furthermore, this makes it impossible for me to set visually-symmetrical margins in certain cases.
Is this a known issue? Have others experienced this? And more importantly, is there any known way to fix it?
Example PDF attached.
- lorumip.pdf 17.7 KB
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 07 Mar, 2025 03:26 PM
Marked reserves space for headers. It collapses as much as possible when there are no headers defined, but the WebKit print system will always reserve space at the top.
2 Posted by daniel on 08 Mar, 2025 12:19 AM
Thank you! Knowing that, I've been able to now reduce the header white space by exporting from Marked 2 to HTML, then opening the exported HTML in Firefox, and then saving as PDF from Firefox!