@medicus.ai/medicus-report-pdf-generator 1.0.367 → 1.0.368

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.
@@ -1,9 +1,9 @@
1
1
  body {
2
2
  direction: rtl;
3
- font-feature-settings: normal !important;
4
- -webkit-font-feature-settings: normal !important;
5
- -moz-font-feature-settings: normal !important;
6
3
  font-family: 'Cairo',serif !important;
4
+ font-feature-settings: "zero" off !important;
5
+ -webkit-font-feature-settings: "zero" off !important;
6
+ -moz-font-feature-settings: "zero" off !important;
7
7
  }
8
8
 
9
9
  .biom-unit .biom-parent-unit.unit-text {
@@ -17,6 +17,7 @@
17
17
  @font-face {
18
18
  font-family: 'Cairo';
19
19
  font-style: normal;
20
+ font-feature-settings: "zero" off !important;
20
21
  font-weight: 400;
21
22
  src: url('Cairo-Regular.ttf') format('truetype'),
22
23
  url('Cairo-Regular.ttf') format('truetype');
package/debug-font.png ADDED
Binary file
@@ -905,12 +905,12 @@ const generatePDFReport = async (data) => {
905
905
  }).catch(e => {
906
906
  console.log("ERROR IS File path: " + e.message);
907
907
  });
908
-
908
+ await page.screenshot({ path: 'debug-font.png' });
909
909
  debugLog("page opened!");
910
910
 
911
911
  const buffer1 = await page.pdf({
912
912
  format: 'A4',
913
- printBackground: true,
913
+
914
914
  displayHeaderFooter: true,
915
915
  footerTemplate:footerTemplate,
916
916
  width: "220mm",
@@ -919,7 +919,8 @@ const generatePDFReport = async (data) => {
919
919
  bottom: '50px',
920
920
  left: '20px',
921
921
  right: '20px'
922
- }
922
+ },
923
+ printBackground: true,
923
924
  });
924
925
 
925
926
  debugLog("Buffer1 loaded!");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medicus.ai/medicus-report-pdf-generator",
3
- "version": "1.0.367",
3
+ "version": "1.0.368",
4
4
  "description": "Nasco corporate report - latest update in 12/10/2023 - Fix HRC for bionext",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,12 +8,15 @@
8
8
  <link rel="stylesheet" href="../assets/Mediclinic/css/nasco_report_rtl.css" type="text/css">
9
9
  <link rel="stylesheet" href="../assets/Mediclinic/css/style.css" type="text/css">
10
10
  <style>
11
- {
12
- font-family: 'Cairo', sans-serif;
11
+ body, html {
12
+ font-family: 'Cairo', sans-serif !important;
13
13
  font-feature-settings: "zero" off !important;
14
14
  -webkit-font-feature-settings: "zero" off !important;
15
15
  -moz-font-feature-settings: "zero" off !important;
16
16
  }
17
+ @page {
18
+ font-family: 'Cairo', sans-serif !important;
19
+ }
17
20
  </style>
18
21
  <script>
19
22
  var IS_ARABIC = true;