Skip to content

Commit

Permalink
Fix bugs in pdf exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Feb 25, 2018
1 parent d32e151 commit 1f258e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions _sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ footer a:hover {
font-size: 11pt;
}

footer {
display: none;
}

#container {
max-width: none;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion utils/convert_to_pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1f258e0

Please sign in to comment.