Fix bugs in pdf exporter

This commit is contained in:
rubenwardy 2018-02-25 01:25:10 +00:00
parent d32e1512fc
commit 1f258e06ea
2 changed files with 5 additions and 1 deletions

View File

@ -159,6 +159,10 @@ footer a:hover {
font-size: 11pt;
}
footer {
display: none;
}
#container {
max-width: none;
margin: 0;

View File

@ -33,7 +33,7 @@ var links = {{ site.data.links_en | jsonify }};
// page.pdf() is currently supported only in headless mode.
// @see https://bugs.chromium.org/p/chromium/issues/detail?id=753118
const margin = "0.2in"
const file_seg = link.num ? link.num.pad() : ("0_" + link.title.replace(".", "_"))
const file_seg = link.num ? link.num.pad() : ("00_" + link.title.replace(".", "_"))
await page.pdf({
path: "tmp/page_" + file_seg + ".pdf",
format: "A5",