From c4e8d01784e7dde8596e3065ae29bc47836792e7 Mon Sep 17 00:00:00 2001 From: Chandler Copeland Date: Fri, 20 Mar 2026 00:42:03 -0600 Subject: [PATCH] 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 --- teressa-copeland-homes/src/lib/pdf/prepare-document.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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