Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
95bc4bc5b7
commit
8473cc2810
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user