p3x-html-pdf 2025.4.133 → 2025.4.134

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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- # 📃 Generates PDF from HTML with custom headers and footers with wkhtmltopdf v2025.4.133
9
+ # 📃 Generates PDF from HTML with custom headers and footers with wkhtmltopdf v2025.4.134
10
10
 
11
11
 
12
12
 
@@ -374,7 +374,7 @@ All my domains, including [patrikx3.com](https://patrikx3.com), [corifeus.eu](ht
374
374
  ---
375
375
 
376
376
 
377
- [**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.133
377
+ [**P3X-HTML-PDF**](https://corifeus.com/html-pdf) Build v2025.4.134
378
378
 
379
379
  [![NPM](https://img.shields.io/npm/v/p3x-html-pdf.svg)](https://www.npmjs.com/package/p3x-html-pdf) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
380
380
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "p3x-html-pdf",
3
- "version": "2025.4.133",
3
+ "version": "2025.4.134",
4
4
  "corifeus": {
5
5
  "prefix": "p3x-",
6
6
  "publish": true,
package/src/base.html CHANGED
@@ -5,14 +5,10 @@
5
5
  <base href="${base}">
6
6
  <style type="text/css">${css}</style>
7
7
  <style type="text/css">
8
-
9
- ng-html-template-include {
10
- background-color: transparent;
11
- }
12
-
13
8
  .ng-template-page-break {
14
9
  height: 0px;
15
10
  border-top-style: none;
11
+ page-break-after: always;
16
12
  }
17
13
  </style>
18
14
  </head>
@@ -0,0 +1,18 @@
1
+ @charset "UTF-8";
2
+ body {
3
+ font-family: 'Arrial Narrow', sans-serif;
4
+ font-size: 14px;
5
+ margin: 0;
6
+ padding: 0;
7
+ color: black;
8
+ }
9
+
10
+ tr {
11
+ page-break-inside: avoid;
12
+ }
13
+
14
+ table {
15
+ border-collapse: collapse;
16
+ }
17
+
18
+
package/src/index.js CHANGED
@@ -46,7 +46,7 @@ const generate = async (options) => {
46
46
  const baseHtmlFooterHeader = (await fs.readFile(`${__dirname}/header-footer.html`)).toString();
47
47
 
48
48
  options.base = options.base || 'file://' + __dirname;
49
- options.css = options.css || (await fs.readFile(`${__dirname}/ng-html-template.css`)).toString();
49
+ options.css = options.css || (await fs.readFile(`${__dirname}/html-template.css`)).toString();
50
50
  options.jquery = options.jquery || (await fs.readFile(`${__dirname}/jquery-1.12.4.min.js`)).toString();
51
51
 
52
52
  let html = template(baseHtml)(options)
@@ -1,103 +0,0 @@
1
- @charset "UTF-8";
2
- .ng-button-row-left {
3
- padding-right: 5px;
4
- }
5
-
6
- .ng-position-fixed-top-left {
7
- position: fixed;
8
- top: 0px;
9
- left: 0px;
10
- }
11
-
12
- .ng-position-fixed-top-right {
13
- position: fixed;
14
- top: 0px;
15
- right: 0px;
16
- }
17
-
18
- .ng-position-fixed-bottom-left {
19
- position: fixed;
20
- bottom: 0px;
21
- left: 0px;
22
- }
23
-
24
- .ng-position-fixed-bottom-right {
25
- position: fixed;
26
- bottom: 0px;
27
- right: 0px;
28
- }
29
-
30
- /**
31
- template
32
- .template {
33
- // > 600
34
-
35
- // <= 600
36
- @media screen and (min-width: $screen-small) {
37
- }
38
- // <= 960
39
- @media screen and (min-width: $screen-medium) {
40
- }
41
- // <= 1280
42
- @media screen and (min-width: $screen-large) {
43
- }
44
-
45
- // <= 1920
46
- @media screen and (min-width: $screen-huge) {
47
- }
48
- }
49
- */
50
- body {
51
- font-family: 'Arrial Narrow', sans-serif;
52
- font-size: 14px;
53
- margin: 0;
54
- padding: 0;
55
- color: black;
56
- }
57
-
58
- tr {
59
- page-break-inside: avoid;
60
- }
61
-
62
- table {
63
- border-collapse: collapse;
64
- }
65
-
66
- .ng-size-a5 {
67
- font-size: 14px;
68
- }
69
-
70
- .ng-highlight-gray {
71
- background-color: rgba(128, 128, 128, 0.5);
72
- }
73
-
74
-
75
- .divider, .ng-divider {
76
- height: 20px;
77
- }
78
-
79
- .border-horizontal, .ng-border-horizontal {
80
- border-top: 1px solid #000000;
81
- }
82
-
83
- .ng-border-top-bottom {
84
- border-top: 1px solid rgba(0, 0, 0, 0.5);
85
- border-bottom: 1px solid rgba(0, 0, 0, 0.5);
86
- }
87
-
88
- .border {
89
- border: 1px solid #000000;
90
- }
91
-
92
- .ng-template-page-break {
93
- height: 1px;
94
- border-top-style: dotted;
95
- page-break-after: always;
96
- }
97
-
98
-
99
-
100
- .ng-header {
101
- font-weight: bold;
102
- }
103
-