Help wanted for page margins with header and footer

Frank's Avatar

Frank

09 Mar, 2017 09:11 PM

Dear Brett,

Thank you for developing Marked 2! I am currently working on a large formal document with approx. 37,000 words and a style sheet for exporting this document to a paginated PDF. The style sheet is almost finished with very pleasing results, but I am struggling with the margins of the pages in the PDF.

I need to have a white border of 1.7cm all around the page, with headers and footers in each of the four corners. The body of the text should be 4.2cm from the the page top, 1.7cm from the right edge, 2.0cm from the page bottom and 5.7cm from the left edge.

Unfortunately I have no idea what to set the margins in the Export Settings to, because the unit of these numbers is unknown. Also, the numbers that I enter here, appear to be used both for positioning the headers and footers and for setting the margins of the body text. So either the margins around the body are too narrow or the headers and footers are too far away from the edge of the page.

I have no clue how to fix this. Could please point me in the right direction?

Many thanks in advance!
Frank

  1. Support Staff 1 Posted by Brett on 09 Mar, 2017 09:21 PM

    Brett's Avatar

    The units are points (pts), so you can convert cm to pts using an online
    tool such as
    http://www.asknumbers.com/CentimetersToPointsConversion.aspx . Note that
    you can't use the exact decimal, so you need to round it to the nearest
    whole point.

    That said, setting top/bottom margins does currently affect where the
    headers/footers are drawn in. I hope to fix this soon, as due to the way
    that the PDF generation works, you can't adjust the top/bottom page
    margins with CSS either (it only affects the first and last pages).

    -Brett

  2. 2 Posted by Frank on 14 Mar, 2017 03:23 PM

    Frank's Avatar

    Dear Brett,

    Although I was hoping for more control over the final output, your tip did help me find a workable solution.

    Thanks,
    Frank

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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