@measurequick/measurequick-report-generator 1.1.99 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -43,7 +43,9 @@ export async function getReport(payload) { console.log("Photos Report"); console
|
|
|
43
43
|
if (photo.includes("image/jpeg")) image = await doc.embedJpg(util._base64ToArrayBuffer(photo));
|
|
44
44
|
else if (photo.includes("image/png")) image = await doc.embedPng(util._base64ToArrayBuffer(photo));
|
|
45
45
|
if (image) form.getButton(`photo${size}${j}`).setImage(image);
|
|
46
|
-
|
|
46
|
+
if (payload.photos[keys[k]][sections[sectionNum]].hasNotes) {
|
|
47
|
+
form.getTextField(`Notes${j}`).setText(`${payload.photos[keys[k]][sections[sectionNum]].notes}`);
|
|
48
|
+
}
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
}
|
|
@@ -57,3 +59,6 @@ export async function getReport(payload) { console.log("Photos Report"); console
|
|
|
57
59
|
}
|
|
58
60
|
return await pdfDoc.saveAsBase64({ dataUri: true });
|
|
59
61
|
}
|
|
62
|
+
|
|
63
|
+
// MAX # of Characters for 2-Photo Pages: 95 Characters
|
|
64
|
+
// MAX # of Characters for 4-Photo & 6-Photo Pages: 42 Characters
|