Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 03:03:14 +00:00
co-authored by renee-png
parent 95bc4bc5b7
commit 8473cc2810
+2 -2
View File
@@ -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";