diff --git a/src/components/forms/custom-form-builder.tsx b/src/components/forms/custom-form-builder.tsx index 7342044..b787507 100644 --- a/src/components/forms/custom-form-builder.tsx +++ b/src/components/forms/custom-form-builder.tsx @@ -533,11 +533,11 @@ export function CustomFormBuilder() { const ctx = await getContext(); const segments = getRenderedSegments(); const doc = new jsPDF({ unit: "pt", format: "letter" }); - const margin = 54; + const margin = Math.round(marginInches * 72); const pageW = doc.internal.pageSize.getWidth(); const pageH = doc.internal.pageSize.getHeight(); const maxW = pageW - margin * 2; - let y = 80; + let y = margin + 26; const fontDef = FONT_FAMILIES.find((f) => f.value === fontFamily); const pdfFont = fontDef?.pdf ?? "times";