@measurequick/measurequick-report-generator 1.0.40 → 1.0.42

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.
Files changed (2) hide show
  1. package/index.js +16 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -184,18 +184,23 @@ function printFooterData(techName, profilePicture, companyLogo) {
184
184
 
185
185
  function printPhotos(photoSections) {
186
186
  doc.addPage();
187
- var x = 0;
188
- var y = 0;
187
+ var x = 1;
188
+ var y = 1;
189
189
  var i = 0;
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
- }
190
+ doc.setTextColor(0, 0, 0);
191
+ doc.setFontSize(16);
192
+ doc.setFontType("bold");
193
+ doc.text("TEST", 2, 2);
194
+ // runs up to this point
195
+ for (let photoSection in photoSections) { // project, equipment, site, customer
196
+ for (let p = 0; p < photoSection.length; p++) { // each image
197
+ doc.addImage(photoSection[p].base64, "PNG", x, y, .5, .5);
198
+ y += 1;
199
+ // i++;
200
+ // if (i == 2) {
201
+ // i = 0;
202
+ // doc.addPage();
203
+ // }
199
204
  }
200
205
  }
201
206
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {