yzane / vscode-markdown-pdf

Markdown converter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=yzane.markdown-pdf
Other
1.01k stars 206 forks source link

Feature request: per page settings (margins) #317

Open deusdevok opened 1 year ago

deusdevok commented 1 year ago

I'm trying to set different margins of the output PDF for the first page (which is a cover image, and I need it to fill the whole page, margin: 0). The rest of the document would have different settings (margins as default for example).

Is there a way to achieve this? I'm looking at the documentation on margins, but this applies to all pages, as far as I understand.

owanerwo commented 1 year ago

I'm also looking for an option to customize the cover page (custom content displayed instead or over header and footer).

I've tried:

@page :first {
    margin-top: 0cm;
    margin-bottom: 0cm;
}

to hide header and footer on the first page, however it turns out that the setting was applied to every page...