@measurequick/measurequick-report-generator 1.0.39 → 1.0.40
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/index.js +10 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -182,18 +182,20 @@ function printFooterData(techName, profilePicture, companyLogo) {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
function printPhotos(
|
|
185
|
+
function printPhotos(photoSections) {
|
|
186
186
|
doc.addPage();
|
|
187
187
|
var x = 0;
|
|
188
188
|
var y = 0;
|
|
189
189
|
var i = 0;
|
|
190
|
-
for (let
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
i
|
|
196
|
-
|
|
190
|
+
for (let photoSection in photoSections) {
|
|
191
|
+
for (let p = 0; p < photoSection.length; p++) {
|
|
192
|
+
doc.addImage(photoSection[p].base64, "PNG", x, y, 4, 4);
|
|
193
|
+
y += 4;
|
|
194
|
+
i++;
|
|
195
|
+
if (i == 2) {
|
|
196
|
+
i = 0;
|
|
197
|
+
doc.addPage();
|
|
198
|
+
}
|
|
197
199
|
}
|
|
198
200
|
}
|
|
199
201
|
}
|