@measurequick/measurequick-report-generator 1.4.55 → 1.4.56
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
|
@@ -59,7 +59,7 @@ export async function getReport(payload) {
|
|
|
59
59
|
if (photo && photo.base64 && typeof photo.base64 == 'string') {
|
|
60
60
|
if (photo.base64.includes("image/jpeg")) imageToSet = await docs[docIndex].embedJpg(util._base64ToArrayBuffer(photo.base64));
|
|
61
61
|
else if (photo.base64.includes("image/png")) imageToSet = await docs[docIndex].embedPng(util._base64ToArrayBuffer(photo.base64));
|
|
62
|
-
else imageToSet = await docs[docIndex].embedJpg(util._base64ToArrayBuffer(
|
|
62
|
+
else imageToSet = await docs[docIndex].embedJpg(util._base64ToArrayBuffer(photo.base64));
|
|
63
63
|
}
|
|
64
64
|
if (imageToSet) forms[docIndex].getButton(`photo${pSize}${photoPosition}`).setImage(imageToSet);
|
|
65
65
|
let photoSubText = photoSection.name;
|
|
@@ -111,7 +111,7 @@ export async function getReport(payload) {
|
|
|
111
111
|
if (photo && photo.base64 && typeof photo.base64 == 'string') {
|
|
112
112
|
if (photo.base64.includes("image/jpeg")) imageToSet = await docs[docIndex].embedJpg(util._base64ToArrayBuffer(photo.base64));
|
|
113
113
|
else if (photo.base64.includes("image/png")) imageToSet = await docs[docIndex].embedPng(util._base64ToArrayBuffer(photo.base64));
|
|
114
|
-
else imageToSet = await docs[docIndex].embedJpg(util._base64ToArrayBuffer(
|
|
114
|
+
else imageToSet = await docs[docIndex].embedJpg(util._base64ToArrayBuffer(photo.base64));
|
|
115
115
|
}
|
|
116
116
|
if (imageToSet) forms[docIndex].getButton(`photo${pSize}${photoPosition}`).setImage(imageToSet);
|
|
117
117
|
let photoSubText = photoSection.name;
|