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