Notes-up icon indicating copy to clipboard operation
Notes-up copied to clipboard

@page ignored when exporting to pdf

Open Bronislas opened this issue 5 years ago • 0 comments

Hi, I would like to change the margins of my notes when exported to pdf. I have modified the elementary.css style but I can't find a way to change the margins in all the pages.

If I specify margins for the body element, like this :

body {
   margin: 4cm 2cm;
}

the top and bottom-margins are only specified for the first and the last pages of the pdf document.

I know there is the @page element, but if I do this :

@page {
   margin: 4cm 2cm;
}

It seems to be ignored.

I eventually tried to modify the geometry in a YAML header, but still without success though.

Bronislas avatar Apr 10 '20 08:04 Bronislas