fix(05-04): move text stamp to 60pt from top, increase font size to 10pt

- Change startY from pageHeight-20 to pageHeight-60 (~0.83 inch from top)
- Increase lineHeight from 12 to 14 for better readability
- Increase stamp font size from 8pt to 10pt for better visibility
This commit is contained in:
Chandler Copeland
2026-03-20 00:42:03 -06:00
parent 73ba6d5a0d
commit c4e8d01784

View File

@@ -65,8 +65,8 @@ export async function preparePdf(
if (firstPage) { if (firstPage) {
const { height: pageHeight } = firstPage.getSize(); const { height: pageHeight } = firstPage.getSize();
// Start near the top of the page (points from bottom, since PDF Y=0 is bottom) // Start near the top of the page (points from bottom, since PDF Y=0 is bottom)
const startY = pageHeight - 20; const startY = pageHeight - 60; // 60pt (~0.83 inch) from top
const lineHeight = 12; const lineHeight = 14;
const labelColor = rgb(0.2, 0.2, 0.2); const labelColor = rgb(0.2, 0.2, 0.2);
const valueColor = rgb(0.05, 0.05, 0.55); const valueColor = rgb(0.05, 0.05, 0.55);
@@ -77,7 +77,7 @@ export async function preparePdf(
firstPage.drawText(`${key}: ${value}`, { firstPage.drawText(`${key}: ${value}`, {
x: 10, x: 10,
y, y,
size: 8, size: 10,
font: helvetica, font: helvetica,
color: hasAcroForm ? valueColor : labelColor, color: hasAcroForm ? valueColor : labelColor,
// Semi-transparent background note: @cantoo/pdf-lib drawText has no background // Semi-transparent background note: @cantoo/pdf-lib drawText has no background