@medicus.ai/medicus-report-pdf-generator 1.0.366 → 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,14 +1,11 @@
1
1
  body {
2
- margin: 0;
2
+ font-family: "Open Sans", sans-serif;
3
3
  padding: 0;
4
4
  box-sizing: border-box;
5
5
  width: 240mm;
6
6
  height: 297mm;
7
7
  margin: auto;
8
- font-family: "Open Sans", sans-serif;
9
- font-feature-settings: normal !important;
10
- -webkit-font-feature-settings: normal !important;
11
- -moz-font-feature-settings: normal !important;
8
+ position: relative;
12
9
  }
13
10
 
14
11
  html {
@@ -17,12 +14,6 @@ html {
17
14
  scroll-behavior: smooth;
18
15
  }
19
16
 
20
- body {
21
- position: relative;
22
- font-family: "Open Sans", sans-serif;
23
-
24
- }
25
-
26
17
  header {
27
18
  min-height: 38px;
28
19
  padding: 3.143em 3.571em 0;
@@ -3722,7 +3713,7 @@ div[key="mind"] .score-details-title {
3722
3713
  .details-label,
3723
3714
  .details-value {
3724
3715
  width: 48%;
3725
- font-family: "Open Sans", sans-serif !important;
3716
+ font-family: "Cairo", sans-serif !important;
3726
3717
  padding: 7px;
3727
3718
  font-size: 13px;
3728
3719
  display: flex;
@@ -3739,7 +3730,7 @@ div[key="mind"] .score-details-title {
3739
3730
  margin-left: 1%;
3740
3731
  font-weight: 400;
3741
3732
  color: #555;
3742
- font-family: "Open Sans", sans-serif !important;
3733
+ font-family: "Cairo", sans-serif !important;
3743
3734
  background-color: #f8fafb;
3744
3735
  }
3745
3736
 
@@ -1,9 +1,9 @@
1
1
  body {
2
- font-family: 'Cairo',serif !important;
3
2
  direction: rtl;
4
- font-feature-settings: normal !important;
5
- -webkit-font-feature-settings: normal !important;
6
- -moz-font-feature-settings: normal !important;
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.366",
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": {
@@ -4,10 +4,20 @@
4
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
5
5
  <title>TEMPLATE</title>
6
6
  <link rel="preload" href="../assets/Mediclinic/css/style.css" as="style">
7
-
8
7
  <link rel="stylesheet" href="../assets/Mediclinic/css/nasco_report.css" type="text/css">
9
8
  <link rel="stylesheet" href="../assets/Mediclinic/css/nasco_report_rtl.css" type="text/css">
10
9
  <link rel="stylesheet" href="../assets/Mediclinic/css/style.css" type="text/css">
10
+ <style>
11
+ body, html {
12
+ font-family: 'Cairo', sans-serif !important;
13
+ font-feature-settings: "zero" off !important;
14
+ -webkit-font-feature-settings: "zero" off !important;
15
+ -moz-font-feature-settings: "zero" off !important;
16
+ }
17
+ @page {
18
+ font-family: 'Cairo', sans-serif !important;
19
+ }
20
+ </style>
11
21
  <script>
12
22
  var IS_ARABIC = true;
13
23
  </script>