ztxkutils 10.0.10 → 10.0.11

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/dist/print.js +7 -3
  2. package/package.json +1 -1
package/dist/print.js CHANGED
@@ -501,9 +501,13 @@ function htmlToPdfNoCanvas(_a) {
501
501
  windowWidth: pageWidth_1,
502
502
  callback: function (res) {
503
503
  // 添加呈现的HTML所需的页面(从第2页开始)
504
- for (var i = 2, j = res.internal.getNumberOfPages(); i <= j; i++) {
505
- pdf_3.addPage(pageFormat, pageOrient);
506
- }
504
+ // for (
505
+ // let i = 2, j = (res as any).internal.getNumberOfPages();
506
+ // i <= j;
507
+ // i++
508
+ // ) {
509
+ // pdf.addPage(pageFormat, pageOrient);
510
+ // }
507
511
  for (var i = 1, j = res.internal.getNumberOfPages(); i <= j; i++) {
508
512
  pdf_3.setPage(i);
509
513
  // 添加水印
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "10.0.10",
3
+ "version": "10.0.11",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",