|
512 | 512 | finishWorkerTask(i); |
513 | 513 | s && |
514 | 514 | (0, r.info)( |
515 | | - `page=${n + 1} - getOperatorList: time=${ |
516 | | - Date.now() - s |
517 | | - }ms, len=${e.length}`, |
| 515 | + `page=${n + 1} - getOperatorList: time=${Date.now() - s}ms, len=${e.length}`, |
518 | 516 | ); |
519 | 517 | t.close(); |
520 | 518 | }, |
|
5086 | 5084 | this.backgroundColor && |
5087 | 5085 | (s = `${(0, i.getPdfColor)(this.backgroundColor, !0)} ${n} f `); |
5088 | 5086 | if (this.borderColor) { |
5089 | | - s += `${this.borderStyle.width || 1} w ${(0, i.getPdfColor)( |
5090 | | - this.borderColor, |
5091 | | - !1, |
5092 | | - )} ${n} S `; |
| 5087 | + s += `${this.borderStyle.width || 1} w ${(0, i.getPdfColor)(this.borderColor, !1)} ${n} S `; |
5093 | 5088 | } |
5094 | 5089 | return s; |
5095 | 5090 | } |
|
5372 | 5367 | return ( |
5373 | 5368 | `/Tx BMC q ${h}BT ` + |
5374 | 5369 | p + |
5375 | | - ` 1 0 0 1 ${(0, n.numberToString)(2)} ${(0, n.numberToString)( |
5376 | | - v, |
5377 | | - )} Tm (${(0, n.escapeString)(w[0])}) Tj ET Q EMC` |
| 5370 | + ` 1 0 0 1 ${(0, n.numberToString)(2)} ${(0, n.numberToString)(v)} Tm (${(0, n.escapeString)(w[0])}) Tj ET Q EMC` |
5378 | 5371 | ); |
5379 | 5372 | return ( |
5380 | 5373 | `/Tx BMC q ${h}BT ` + |
5381 | 5374 | p + |
5382 | | - ` 1 0 0 1 0 0 Tm ${this._renderText( |
5383 | | - w[0], |
5384 | | - y, |
5385 | | - m, |
5386 | | - g, |
5387 | | - k, |
5388 | | - { shift: 0 }, |
5389 | | - 2, |
5390 | | - v, |
5391 | | - )} ET Q EMC` |
| 5375 | + ` 1 0 0 1 0 0 Tm ${this._renderText(w[0], y, m, g, k, { shift: 0 }, 2, v)} ET Q EMC` |
5392 | 5376 | ); |
5393 | 5377 | } |
5394 | 5378 | static async _getFontData(e, t, a, r) { |
|
5470 | 5454 | } else l = o; |
5471 | 5455 | const h = (0, n.numberToString)(l - s.shift); |
5472 | 5456 | s.shift = l; |
5473 | | - return `${h} ${(c = (0, n.numberToString)(c))} Td (${(0, |
5474 | | - n.escapeString)(e)}) Tj`; |
| 5457 | + return `${h} ${(c = (0, n.numberToString)(c))} Td (${(0, n.escapeString)(e)}) Tj`; |
5475 | 5458 | } |
5476 | 5459 | _getSaveFieldResources(e) { |
5477 | 5460 | const { |
|
5547 | 5530 | return ( |
5548 | 5531 | `/Tx BMC q ${f}BT ` + |
5549 | 5532 | e + |
5550 | | - ` 1 0 0 1 ${(0, n.numberToString)(o)} ${(0, n.numberToString)( |
5551 | | - c + l, |
5552 | | - )} Tm ${m} ET Q EMC` |
| 5533 | + ` 1 0 0 1 ${(0, n.numberToString)(o)} ${(0, n.numberToString)(c + l)} Tm ${m} ET Q EMC` |
5553 | 5534 | ); |
5554 | 5535 | } |
5555 | 5536 | _getMultilineAppearance(e, t, a, r, i, s, o, c, l, h, u, d) { |
|
5788 | 5769 | (0, r.unreachable)( |
5789 | 5770 | `_getDefaultCheckedAppearance - unsupported type: ${t}`, |
5790 | 5771 | ); |
5791 | | - const d = `q BT /PdfJsZaDb ${l} Tf 0 g ${(0, n.numberToString)( |
5792 | | - (a - h.width) / 2, |
5793 | | - )} ${(0, n.numberToString)( |
5794 | | - (i - h.height) / 2, |
5795 | | - )} Td (${u}) Tj ET Q`, |
| 5772 | + const d = `q BT /PdfJsZaDb ${l} Tf 0 g ${(0, n.numberToString)((a - h.width) / 2)} ${(0, n.numberToString)((i - h.height) / 2)} Td (${u}) Tj ET Q`, |
5796 | 5773 | f = new s.Dict(e.xref); |
5797 | 5774 | f.set("FormType", 1); |
5798 | 5775 | f.set("Subtype", s.Name.get("Form")); |
|
6631 | 6608 | for (const { bezier: e } of l) { |
6632 | 6609 | f.length = 0; |
6633 | 6610 | f.push( |
6634 | | - `${(0, n.numberToString)(e[0])} ${(0, n.numberToString)( |
6635 | | - e[1], |
6636 | | - )} m`, |
| 6611 | + `${(0, n.numberToString)(e[0])} ${(0, n.numberToString)(e[1])} m`, |
6637 | 6612 | ); |
6638 | 6613 | for (let t = 2, a = e.length; t < a; t += 6) { |
6639 | 6614 | const a = e |
|
7280 | 7255 | const v = s * Math.min(w, S), |
7281 | 7256 | F = [ |
7282 | 7257 | "q", |
7283 | | - `0 0 ${(0, n.numberToString)(b)} ${(0, n.numberToString)( |
7284 | | - y, |
7285 | | - )} re W n`, |
| 7258 | + `0 0 ${(0, n.numberToString)(b)} ${(0, n.numberToString)(y)} re W n`, |
7286 | 7259 | "BT", |
7287 | | - `1 0 0 1 0 ${(0, n.numberToString)( |
7288 | | - y + C, |
7289 | | - )} Tm 0 Tc ${getPdfColor(o, !0)}`, |
| 7260 | + `1 0 0 1 0 ${(0, n.numberToString)(y + C)} Tm 0 Tc ${getPdfColor(o, !0)}`, |
7290 | 7261 | `/${this.fontName.name} ${(0, n.numberToString)(v)} Tf`, |
7291 | 7262 | ], |
7292 | 7263 | { resources: O } = this; |
|
12816 | 12787 | const e = s.peekBytes(a + 1)[a]; |
12817 | 12788 | if (!(0, i.isWhiteSpace)(e)) break; |
12818 | 12789 | (0, r.info)( |
12819 | | - `Found "${(0, r.bytesToString)( |
12820 | | - c, |
12821 | | - )}" when searching for endstream command.`, |
| 12790 | + `Found "${(0, r.bytesToString)(c)}" when searching for endstream command.`, |
12822 | 12791 | ); |
12823 | 12792 | t = l; |
12824 | 12793 | break; |
|
12977 | 12946 | e = this.nextChar(); |
12978 | 12947 | } |
12979 | 12948 | if (e < 48 || e > 57) { |
12980 | | - const t = `Invalid number: ${String.fromCharCode( |
12981 | | - e, |
12982 | | - )} (charCode ${e})`; |
| 12949 | + const t = `Invalid number: ${String.fromCharCode(e)} (charCode ${e})`; |
12983 | 12950 | if ((0, i.isWhiteSpace)(e) || -1 === e) { |
12984 | 12951 | (0, r.info)(`Lexer.getNumber - "${t}".`); |
12985 | 12952 | return 0; |
|
13126 | 13093 | const i = toHexDigit(e); |
13127 | 13094 | if (-1 === i) { |
13128 | 13095 | (0, r.warn)( |
13129 | | - `Lexer_getName: Illegal digit (${String.fromCharCode( |
13130 | | - e, |
13131 | | - )}) in hexadecimal number.`, |
| 13096 | + `Lexer_getName: Illegal digit (${String.fromCharCode(e)}) in hexadecimal number.`, |
13132 | 13097 | ); |
13133 | 13098 | a.push("#", String.fromCharCode(t)); |
13134 | 13099 | if (b[e]) break; |
|
46911 | 46876 | } else |
46912 | 46877 | this.nodeValue |
46913 | 46878 | ? e.push( |
46914 | | - `>${(0, r.encodeToXmlString)(this.nodeValue)}</${ |
46915 | | - this.nodeName |
46916 | | - }>`, |
| 46879 | + `>${(0, r.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`, |
46917 | 46880 | ) |
46918 | 46881 | : e.push("/>"); |
46919 | 46882 | } else e.push((0, r.encodeToXmlString)(this.nodeValue)); |
|
51254 | 51217 | const t = (0, s.toStyle)(this, "border", "margin"), |
51255 | 51218 | a = this[r.$getParent]()[r.$getParent](), |
51256 | 51219 | n = { |
51257 | | - fontSize: `calc(${ |
51258 | | - a.font?.size || 10 |
51259 | | - }px * var(--scale-factor))`, |
| 51220 | + fontSize: `calc(${a.font?.size || 10}px * var(--scale-factor))`, |
51260 | 51221 | }, |
51261 | 51222 | i = []; |
51262 | 51223 | if (a.items.children.length > 0) { |
|
53129 | 53090 | } |
53130 | 53091 | [r.$toStyle](e) { |
53131 | 53092 | e = e ? e[r.$toStyle]() : "#FFFFFF"; |
53132 | | - return `linear-gradient(${this.type |
53133 | | - .replace(/([RBLT])/, " $1") |
53134 | | - .toLowerCase()}, ${e}, ${ |
53135 | | - this.color ? this.color[r.$toStyle]() : "#000000" |
53136 | | - })`; |
| 53093 | + return `linear-gradient(${this.type.replace(/([RBLT])/, " $1").toLowerCase()}, ${e}, ${this.color ? this.color[r.$toStyle]() : "#000000"})`; |
53137 | 53094 | } |
53138 | 53095 | } |
53139 | 53096 | class LockDocument extends o.ContentObject { |
|
53872 | 53829 | [r.$toStyle](e) { |
53873 | 53830 | e = e ? e[r.$toStyle]() : "#FFFFFF"; |
53874 | 53831 | const t = this.color ? this.color[r.$toStyle]() : "#000000"; |
53875 | | - return `radial-gradient(circle at center, ${ |
53876 | | - "toEdge" === this.type ? `${e},${t}` : `${t},${e}` |
53877 | | - })`; |
| 53832 | + return `radial-gradient(circle at center, ${"toEdge" === this.type ? `${e},${t}` : `${t},${e}`})`; |
53878 | 53833 | } |
53879 | 53834 | } |
53880 | 53835 | class Reason extends o.StringObject { |
|
56767 | 56722 | ? (n = ` (id: ${this.id})`) |
56768 | 56723 | : this.name && (n = ` (name: ${this.name} ${this.h.value})`); |
56769 | 56724 | (0, i.warn)( |
56770 | | - `XFA - node "${ |
56771 | | - this[r.$nodeName] |
56772 | | - }"${n} has already enough "${t}"!`, |
| 56725 | + `XFA - node "${this[r.$nodeName]}"${n} has already enough "${t}"!`, |
56773 | 56726 | ); |
56774 | 56727 | return !1; |
56775 | 56728 | } |
|
56990 | 56943 | } |
56991 | 56944 | if (s[r.$nodeName] !== this[r.$nodeName]) { |
56992 | 56945 | (0, i.warn)( |
56993 | | - `XFA - Incompatible prototype: ${s[r.$nodeName]} !== ${ |
56994 | | - this[r.$nodeName] |
56995 | | - }.`, |
| 56946 | + `XFA - Incompatible prototype: ${s[r.$nodeName]} !== ${this[r.$nodeName]}.`, |
56996 | 56947 | ); |
56997 | 56948 | return null; |
56998 | 56949 | } |
|
57123 | 57074 | return !0; |
57124 | 57075 | } |
57125 | 57076 | (0, i.warn)( |
57126 | | - `XFA - node "${e[r.$nodeName]}" accepts no more than ${ |
57127 | | - this[S] |
57128 | | - } children`, |
| 57077 | + `XFA - node "${e[r.$nodeName]}" accepts no more than ${this[S]} children`, |
57129 | 57078 | ); |
57130 | 57079 | return !1; |
57131 | 57080 | } |
@@ -60108,16 +60057,12 @@ |
60108 | 60057 | [ |
60109 | 60058 | "xfa-font-horizontal-scale", |
60110 | 60059 | (e) => |
60111 | | - `scaleX(${Math.max(0, Math.min(parseInt(e) / 100)).toFixed( |
60112 | | - 2, |
60113 | | - )})`, |
| 60060 | + `scaleX(${Math.max(0, Math.min(parseInt(e) / 100)).toFixed(2)})`, |
60114 | 60061 | ], |
60115 | 60062 | [ |
60116 | 60063 | "xfa-font-vertical-scale", |
60117 | 60064 | (e) => |
60118 | | - `scaleY(${Math.max(0, Math.min(parseInt(e) / 100)).toFixed( |
60119 | | - 2, |
60120 | | - )})`, |
| 60065 | + `scaleY(${Math.max(0, Math.min(parseInt(e) / 100)).toFixed(2)})`, |
60121 | 60066 | ], |
60122 | 60067 | ["xfa-spacerun", ""], |
60123 | 60068 | ["xfa-tab-stops", ""], |
|
0 commit comments