Skip to content

Commit

Permalink
Fix: problem overflow due to page breaks (#21)
Browse files Browse the repository at this point in the history
* fix: problems broken by page breaks

* chore: version++
  • Loading branch information
sphars authored Jul 24, 2024
1 parent 7ca33f8 commit 7278f3e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "math-sheets",
"version": "0.5.0",
"version": "0.5.1",
"private": true,
"description": "Generate PDF worksheets of simple math problems in the browser.",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,14 +459,14 @@ async function generatePDF(problems: Problem[]) {
styles: {
halign: "center",
valign: "middle",
font: selectedFont?.name!,
fontSize: 16,
minCellHeight: 46,
minCellWidth: 28,
font: doc.getFont().fontName,
fontSize: 16,
textColor: "black"
},
theme: "plain",
margin: { vertical: 20, horizontal: 16 },
theme: "plain", // no grid lines
margin: { vertical: 22, horizontal: 16 },
didDrawPage: (data) => {
// footer
let footer = `Created with mathsheets.net`;
Expand Down

0 comments on commit 7278f3e

Please sign in to comment.