Essay layout to PDF #924
-
When I export my project to a PDF, the essay layout has a wide top margin on each page. How do I use the whole page on the PDF? It appears fine in the "quire preview". |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I've been doing a lot of work with our PDFs, and it is rather complicated to debug. Firstly, make sure you use print emulation (Chrome: https://developer.chrome.com/docs/devtools/rendering/emulate-css). Secondly, when using quire preview, unless you delete the public folder, you will not have the latest. And when using quire build, be sure to use quire clean first. Finally, there are some basic settings in variables.scss to set the margins, but be aware that how they are applied depends of the page property and the @page settings. By default left and right pages have opposite inner/outer margins.
Finally, I found that my header had a setting that made sense on the screen but was too large in print and was covering content. That may be happening to you. |
Beta Was this translation helpful? Give feedback.
-
I've been cleaning up some of the PDF internals for the last lil bit and can confirm @1000camels 's styling approach above and that it's the most future-proofed (though indeed twitchy as it sets all margins globally for pages). If you're looking to fix just the first page of essays (which in the stylesheet are Other details you may or may not need as you hack away @1000camels and @drbobbyduke , the PDF generator picks up every For Anyway, apologies for dumping this in this unsuspecting thread, but hopefully it's of some use to you both! |
Beta Was this translation helpful? Give feedback.
-
I will try to produce an example. |
Beta Was this translation helpful? Give feedback.
I've been cleaning up some of the PDF internals for the last lil bit and can confirm @1000camels 's styling approach above and that it's the most future-proofed (though indeed twitchy as it sets all margins globally for pages).
If you're looking to fix just the first page of essays (which in the stylesheet are
.quire-page
) and are comfortable getting knee-deep in SCSS, the header margin for hero images is set here: https://github.com/thegetty/quire-starter-default/blob/eaa2a9c07c43c874ab18c0641ad6253f57641278/content/_assets/styles/print.scss#L390 .Other details you may or may not need as you hack away @1000camels and @drbobbyduke , the PDF generator picks up every
<section>
element from…