Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 0bb3076

Browse files
authored
Force paper Landscape A4
1 parent e059f1f commit 0bb3076

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/output/pdf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ class pdf extends markdown {
99
if (fs.existsSync(file)) fs.unlinkSync(file);
1010

1111
markdownpdf({
12+
paperFormat: 'A4',
13+
paperOrientation: 'landscape',
14+
paperBorder: '1cm',
1215
cssPath: `${__dirname}/styles/layout/${style}.css`,
1316
highlightCssPath: `${__dirname}/styles/highlight/${style}.css`
1417
}).from.string(this.out).to(file, () => resolve());
@@ -19,4 +22,4 @@ class pdf extends markdown {
1922
}
2023
}
2124

22-
module.exports = pdf;
25+
module.exports = pdf;

0 commit comments

Comments
 (0)