@measurequick/measurequick-report-generator 1.1.82 → 1.1.83
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
|
@@ -34,12 +34,12 @@ export async function getReport(payload) { console.log(payload);
|
|
|
34
34
|
// embed company logo and profile picture
|
|
35
35
|
let profileImage, companyImage;
|
|
36
36
|
if (payload.photos.profile_image_base64) {
|
|
37
|
-
if (payload.
|
|
38
|
-
else if (payload.
|
|
37
|
+
if (payload.photos.profile_image_base64.includes("image/jpeg")) profileImage = await pdfDoc.embedJpg(util._base64ToArrayBuffer(payload.photos.profile_image_base64));
|
|
38
|
+
else if (payload.photos.profile_image_base64.includes("image/png")) profileImage = await pdfDoc.embedPng(util._base64ToArrayBuffer(payload.photos.profile_image_base64));
|
|
39
39
|
}
|
|
40
40
|
if (payload.photos.company_logo_base64) {
|
|
41
|
-
if (payload.
|
|
42
|
-
else if (payload.
|
|
41
|
+
if (payload.photos.company_logo_base64.includes("image/jpeg")) companyImage = await pdfDoc.embedJpg(util._base64ToArrayBuffer(payload.photos.company_logo_base64));
|
|
42
|
+
else if (payload.photos.company_logo_base64.includes("image/png")) companyImage = await pdfDoc.embedPng(util._base64ToArrayBuffer(payload.photos.company_logo_base64));
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
// get form for filling
|