shareneus 1.7.25 → 1.7.27

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.
@@ -36,7 +36,7 @@ export declare function CreateReceiptPDFService(DocumentData?: any, PrintConfigD
36
36
  margin: number[];
37
37
  width: number;
38
38
  image: string;
39
- fit: number[];
39
+ height: number;
40
40
  stack?: undefined;
41
41
  })[];
42
42
  columnGap: number;
@@ -46,7 +46,7 @@ export declare function CreateReceiptPDFService(DocumentData?: any, PrintConfigD
46
46
  columns: ({
47
47
  width: number;
48
48
  image: string;
49
- fit: number[];
49
+ height: number;
50
50
  margin: number[];
51
51
  } | {
52
52
  width: string;
@@ -298,7 +298,7 @@ export declare function DownloadReceiptPDFService(filename?: string, DocumentDat
298
298
  margin: number[];
299
299
  width: number;
300
300
  image: string;
301
- fit: number[];
301
+ height: number;
302
302
  stack?: undefined;
303
303
  })[];
304
304
  columnGap: number;
@@ -308,7 +308,7 @@ export declare function DownloadReceiptPDFService(filename?: string, DocumentDat
308
308
  columns: ({
309
309
  width: number;
310
310
  image: string;
311
- fit: number[];
311
+ height: number;
312
312
  margin: number[];
313
313
  } | {
314
314
  width: string;
@@ -560,7 +560,7 @@ export declare function GetReceiptPdfDataUrl(DocumentData?: any, PrintConfigData
560
560
  margin: number[];
561
561
  width: number;
562
562
  image: string;
563
- fit: number[];
563
+ height: number;
564
564
  stack?: undefined;
565
565
  })[];
566
566
  columnGap: number;
@@ -570,7 +570,7 @@ export declare function GetReceiptPdfDataUrl(DocumentData?: any, PrintConfigData
570
570
  columns: ({
571
571
  width: number;
572
572
  image: string;
573
- fit: number[];
573
+ height: number;
574
574
  margin: number[];
575
575
  } | {
576
576
  width: string;
@@ -822,7 +822,7 @@ export declare function buildPdfDocDefinition(DocumentData?: any, PrintConfigDat
822
822
  margin: number[];
823
823
  width: number;
824
824
  image: string;
825
- fit: number[];
825
+ height: number;
826
826
  stack?: undefined;
827
827
  })[];
828
828
  columnGap: number;
@@ -832,7 +832,7 @@ export declare function buildPdfDocDefinition(DocumentData?: any, PrintConfigDat
832
832
  columns: ({
833
833
  width: number;
834
834
  image: string;
835
- fit: number[];
835
+ height: number;
836
836
  margin: number[];
837
837
  } | {
838
838
  width: string;
@@ -73,7 +73,7 @@ export declare function buildDocumentHeaderSection(PrintConfig: any, DocumentDat
73
73
  margin: number[];
74
74
  width: number;
75
75
  image: string;
76
- fit: number[];
76
+ height: number;
77
77
  stack?: undefined;
78
78
  })[];
79
79
  columnGap: number;
@@ -83,7 +83,7 @@ export declare function buildDocumentHeaderSection(PrintConfig: any, DocumentDat
83
83
  columns: ({
84
84
  width: number;
85
85
  image: string;
86
- fit: number[];
86
+ height: number;
87
87
  margin: number[];
88
88
  } | {
89
89
  width: string;
@@ -167,7 +167,7 @@ function buildDocumentHeadingSection(PDFInvoiceData, PrintConfig, availableWidth
167
167
  {
168
168
  text: headingText,
169
169
  bold: true,
170
- fontSize: 16,
170
+ fontSize: 14,
171
171
  alignment: 'center',
172
172
  margin: [0, 0, 0, 4]
173
173
  },
@@ -424,13 +424,14 @@ function buildHeaderContentWithLogo(logoDataUrl, hasLogo, organizationStack, log
424
424
  const logoBlock = {
425
425
  width: 120,
426
426
  image: logoDataUrl,
427
- fit: [80, 80],
428
- margin: [0, 2, 6, 0]
427
+ // fit: [80, 80],
428
+ height: 80,
429
+ margin: [0, 0, 6, 0]
429
430
  };
430
431
  if (logoPosition === 'Top') {
431
432
  return {
432
433
  stack: [
433
- { image: logoDataUrl, fit: [80, 80], alignment: textAlignment, margin: [0, 2, 0, 6] },
434
+ { image: logoDataUrl, fit: [72, 72], alignment: textAlignment, margin: [0, 2, 0, 6] },
434
435
  ...safeOrganizationStack
435
436
  ]
436
437
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.7.25",
3
+ "version": "1.7.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -190,7 +190,7 @@ export function buildDocumentHeadingSection(PDFInvoiceData: any, PrintConfig: an
190
190
  {
191
191
  text: headingText,
192
192
  bold: true,
193
- fontSize: 16,
193
+ fontSize: 14,
194
194
  alignment: 'center',
195
195
  margin: [0, 0, 0, 4]
196
196
  },
@@ -484,14 +484,15 @@ function buildHeaderContentWithLogo(
484
484
  const logoBlock = {
485
485
  width: 120,
486
486
  image: logoDataUrl,
487
- fit: [80, 80],
488
- margin: [0, 2, 6, 0]
487
+ // fit: [80, 80],
488
+ height:80,
489
+ margin: [0, 0, 6, 0]
489
490
  };
490
491
 
491
492
  if (logoPosition === 'Top') {
492
493
  return {
493
494
  stack: [
494
- { image: logoDataUrl, fit: [80, 80], alignment: textAlignment, margin: [0, 2, 0, 6] },
495
+ { image: logoDataUrl, fit: [72, 72], alignment: textAlignment, margin: [0, 2, 0, 6] },
495
496
  ...safeOrganizationStack
496
497
  ]
497
498
  };