Writing the footer near the bottom margin (page.height - 40, past the 56pt bottom margin) made pdfkit's automatic overflow check think the text didn't fit and insert a new page per footer write, doubling the page count with blank pages. Fix: zero out page.margins.bottom while writing the footer, restore it after. |
||
|---|---|---|
| .. | ||
| prisma | ||
| scripts | ||
| src | ||
| Dockerfile | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||