Skip to content

Commit

Permalink
fix resume pdf sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jwiggiff committed Dec 21, 2023
1 parent 354a102 commit 9349ef2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion generateResume.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ let server = app.listen(3000);

await page.pdf({
path: "./dist/assets/JoshFriedman_resume.pdf",
format: "letter",
format: "A4",
preferCSSPageSize: true,
});

await browser.close();
Expand Down
9 changes: 8 additions & 1 deletion src/sass/resume.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ body {
size: A4;
margin: 0.75cm;
}
@media print {
html,
body {
width: 210mm;
height: 297mm; // A4 size
}
}
svg {
width: 1em;
height: 1em;
Expand Down Expand Up @@ -229,4 +236,4 @@ p.subtext {
border-bottom: 1px solid;
}
}
}
}

0 comments on commit 9349ef2

Please sign in to comment.