pdfjs-dist 2.6.347 → 2.7.570
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.
Potentially problematic release.
This version of pdfjs-dist might be problematic. Click here for more details.
- package/README.md +3 -3
- package/bower.json +1 -1
- package/build/pdf.js +2050 -1087
- package/build/pdf.js.map +1 -1
- package/build/pdf.min.js +1 -1
- package/build/pdf.worker.js +18219 -10436
- package/build/pdf.worker.js.map +1 -1
- package/build/pdf.worker.min.js +1 -1
- package/es5/build/pdf.d.ts +1 -0
- package/es5/build/pdf.js +6623 -6654
- package/es5/build/pdf.js.map +1 -1
- package/es5/build/pdf.min.js +1 -1
- package/es5/build/pdf.worker.js +20815 -13888
- package/es5/build/pdf.worker.js.map +1 -1
- package/es5/build/pdf.worker.min.js +1 -1
- package/es5/image_decoders/pdf.image_decoders.js +3817 -4946
- package/es5/image_decoders/pdf.image_decoders.js.map +1 -1
- package/es5/image_decoders/pdf.image_decoders.min.js +1 -1
- package/es5/web/pdf_viewer.css +18 -15
- package/es5/web/pdf_viewer.js +1094 -514
- package/es5/web/pdf_viewer.js.map +1 -1
- package/image_decoders/pdf.image_decoders.js +774 -168
- package/image_decoders/pdf.image_decoders.js.map +1 -1
- package/image_decoders/pdf.image_decoders.min.js +1 -1
- package/lib/core/annotation.js +556 -108
- package/lib/core/cff_parser.js +7 -1
- package/lib/core/charsets.js +1 -1
- package/lib/core/cmap.js +20 -1
- package/lib/core/core_utils.js +162 -3
- package/lib/core/crypto.js +1 -1
- package/lib/core/default_appearance.js +132 -0
- package/lib/core/document.js +115 -9
- package/lib/core/encodings.js +1 -1
- package/lib/core/evaluator.js +168 -74
- package/lib/core/fonts.js +97 -11
- package/lib/core/function.js +5 -10
- package/lib/core/glyphlist.js +11 -4529
- package/lib/core/image_utils.js +30 -1
- package/lib/core/jpg.js +1 -1
- package/lib/core/jpx.js +5 -5
- package/lib/core/murmurhash3.js +1 -1
- package/lib/core/obj.js +123 -39
- package/lib/core/pattern.js +4 -4
- package/lib/core/primitives.js +24 -5
- package/lib/core/standard_fonts.js +1 -1
- package/lib/core/stream.js +5 -1
- package/lib/core/unicode.js +15 -1387
- package/lib/core/worker.js +58 -17
- package/lib/core/writer.js +68 -4
- package/lib/display/annotation_layer.js +712 -119
- package/lib/display/annotation_storage.js +21 -4
- package/lib/display/api.js +88 -18
- package/lib/display/canvas.js +414 -375
- package/lib/display/display_utils.js +11 -4
- package/lib/display/fetch_stream.js +3 -3
- package/lib/display/font_loader.js +2 -3
- package/lib/display/metadata.js +54 -20
- package/lib/display/node_stream.js +1 -1
- package/lib/display/optional_content_config.js +1 -1
- package/lib/display/pattern_helper.js +109 -113
- package/lib/display/svg.js +5 -5
- package/lib/display/text_layer.js +54 -54
- package/lib/display/transport_stream.js +4 -4
- package/lib/display/webgl.js +65 -68
- package/lib/examples/node/domstubs.js +9 -4
- package/lib/pdf.js +2 -2
- package/lib/pdf.sandbox.js +311 -0
- package/lib/pdf.worker.js +2 -2
- package/lib/shared/scripting_utils.js +84 -0
- package/lib/shared/util.js +129 -14
- package/lib/{display → shared}/xml_parser.js +112 -4
- package/lib/test/unit/annotation_spec.js +831 -109
- package/lib/test/unit/annotation_storage_spec.js +28 -10
- package/lib/test/unit/api_spec.js +190 -160
- package/lib/test/unit/bidi_spec.js +6 -6
- package/lib/test/unit/cff_parser_spec.js +73 -73
- package/lib/test/unit/clitests_helper.js +2 -0
- package/lib/test/unit/cmap_spec.js +48 -74
- package/lib/test/unit/core_utils_spec.js +34 -0
- package/lib/test/unit/crypto_spec.js +162 -199
- package/lib/test/unit/custom_spec.js +7 -18
- package/lib/test/unit/default_appearance_spec.js +54 -0
- package/lib/test/unit/display_svg_spec.js +24 -19
- package/lib/test/unit/display_utils_spec.js +1 -1
- package/lib/test/unit/document_spec.js +187 -20
- package/lib/test/unit/evaluator_spec.js +30 -30
- package/lib/test/unit/function_spec.js +165 -165
- package/lib/test/unit/jasmine-boot.js +52 -53
- package/lib/test/unit/metadata_spec.js +2 -2
- package/lib/test/unit/murmurhash3_spec.js +29 -16
- package/lib/test/unit/network_spec.js +21 -21
- package/lib/test/unit/pdf_find_controller_spec.js +131 -69
- package/lib/test/unit/pdf_find_utils_spec.js +10 -10
- package/lib/test/unit/scripting_spec.js +1104 -0
- package/lib/test/unit/stream_spec.js +8 -8
- package/lib/test/unit/test_utils.js +16 -19
- package/lib/test/unit/testreporter.js +11 -4
- package/lib/test/unit/type1_parser_spec.js +23 -23
- package/lib/test/unit/ui_utils_spec.js +78 -35
- package/lib/test/unit/unicode_spec.js +7 -7
- package/lib/test/unit/util_spec.js +26 -3
- package/lib/test/unit/writer_spec.js +16 -1
- package/lib/test/unit/xml_spec.js +117 -0
- package/lib/web/annotation_layer_builder.js +18 -6
- package/lib/web/app.js +579 -161
- package/lib/web/app_options.js +14 -0
- package/lib/web/base_tree_viewer.js +50 -0
- package/lib/web/base_viewer.js +350 -14
- package/lib/web/chromecom.js +9 -1
- package/lib/web/debugger.js +1 -2
- package/lib/web/download_manager.js +0 -15
- package/lib/web/firefox_print_service.js +6 -4
- package/lib/web/firefoxcom.js +84 -69
- package/lib/web/generic_scripting.js +55 -0
- package/lib/web/genericcom.js +9 -1
- package/lib/web/grab_to_pan.js +1 -1
- package/lib/web/interfaces.js +9 -3
- package/lib/web/pdf_attachment_viewer.js +1 -3
- package/lib/web/pdf_cursor_tools.js +20 -13
- package/lib/web/pdf_document_properties.js +48 -61
- package/lib/web/pdf_find_bar.js +1 -3
- package/lib/web/pdf_find_controller.js +58 -12
- package/lib/web/pdf_history.js +43 -21
- package/lib/web/pdf_layer_viewer.js +1 -9
- package/lib/web/pdf_link_service.js +108 -78
- package/lib/web/pdf_outline_viewer.js +166 -10
- package/lib/web/pdf_page_view.js +14 -14
- package/lib/web/pdf_presentation_mode.js +21 -31
- package/lib/web/pdf_rendering_queue.js +8 -1
- package/lib/web/pdf_sidebar.js +62 -107
- package/lib/web/pdf_sidebar_resizer.js +11 -21
- package/lib/web/pdf_single_page_viewer.js +8 -0
- package/lib/web/pdf_thumbnail_view.js +26 -26
- package/lib/web/pdf_thumbnail_viewer.js +13 -2
- package/lib/web/pdf_viewer.component.js +2 -2
- package/lib/web/pdf_viewer.js +3 -1
- package/lib/web/preferences.js +33 -44
- package/lib/web/text_layer_builder.js +2 -9
- package/lib/web/ui_utils.js +78 -46
- package/lib/web/viewer_compatibility.js +1 -2
- package/package.json +4 -1
- package/types/display/annotation_layer.d.ts +18 -3
- package/types/display/api.d.ts +110 -54
- package/types/display/canvas.d.ts +1 -1
- package/types/display/display_utils.d.ts +96 -95
- package/types/display/fetch_stream.d.ts +2 -2
- package/types/display/metadata.d.ts +4 -0
- package/types/display/pattern_helper.d.ts +1 -1
- package/types/display/text_layer.d.ts +7 -7
- package/types/display/transport_stream.d.ts +1 -1
- package/types/shared/scripting_utils.d.ts +12 -0
- package/types/shared/util.d.ts +281 -250
- package/types/shared/xml_parser.d.ts +64 -0
- package/web/pdf_viewer.css +18 -15
- package/web/pdf_viewer.js +809 -408
- package/web/pdf_viewer.js.map +1 -1
- package/webpack.js +1 -1
- package/types/display/xml_parser.d.ts +0 -35
@@ -26,6 +26,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
26
26
|
});
|
27
27
|
exports.AnnotationStorage = void 0;
|
28
28
|
|
29
|
+
var _util = require("../shared/util.js");
|
30
|
+
|
29
31
|
class AnnotationStorage {
|
30
32
|
constructor() {
|
31
33
|
this._storage = new Map();
|
@@ -45,11 +47,26 @@ class AnnotationStorage {
|
|
45
47
|
}
|
46
48
|
|
47
49
|
setValue(key, value) {
|
48
|
-
|
49
|
-
|
50
|
+
const obj = this._storage.get(key);
|
51
|
+
|
52
|
+
let modified = false;
|
53
|
+
|
54
|
+
if (obj !== undefined) {
|
55
|
+
for (const [entry, val] of Object.entries(value)) {
|
56
|
+
if (obj[entry] !== val) {
|
57
|
+
modified = true;
|
58
|
+
obj[entry] = val;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
} else {
|
62
|
+
this._storage.set(key, value);
|
63
|
+
|
64
|
+
modified = true;
|
50
65
|
}
|
51
66
|
|
52
|
-
|
67
|
+
if (modified) {
|
68
|
+
this._setModified();
|
69
|
+
}
|
53
70
|
}
|
54
71
|
|
55
72
|
getAll() {
|
@@ -57,7 +74,7 @@ class AnnotationStorage {
|
|
57
74
|
return null;
|
58
75
|
}
|
59
76
|
|
60
|
-
return
|
77
|
+
return (0, _util.objectFromEntries)(this._storage);
|
61
78
|
}
|
62
79
|
|
63
80
|
get size() {
|
package/lib/display/api.js
CHANGED
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
26
26
|
});
|
27
27
|
exports.getDocument = getDocument;
|
28
28
|
exports.setPDFNetworkStreamFactory = setPDFNetworkStreamFactory;
|
29
|
-
exports.
|
29
|
+
exports.version = exports.PDFWorker = exports.PDFPageProxy = exports.PDFDocumentProxy = exports.PDFDataRangeTransport = exports.LoopbackPort = exports.DefaultCMapReaderFactory = exports.DefaultCanvasFactory = exports.build = void 0;
|
30
30
|
|
31
31
|
var _util = require("../shared/util.js");
|
32
32
|
|
@@ -59,7 +59,9 @@ var _webgl = require("./webgl.js");
|
|
59
59
|
const DEFAULT_RANGE_CHUNK_SIZE = 65536;
|
60
60
|
const RENDERING_CANCELLED_TIMEOUT = 100;
|
61
61
|
const DefaultCanvasFactory = _is_node.isNodeJS ? _node_utils.NodeCanvasFactory : _display_utils.DOMCanvasFactory;
|
62
|
+
exports.DefaultCanvasFactory = DefaultCanvasFactory;
|
62
63
|
const DefaultCMapReaderFactory = _is_node.isNodeJS ? _node_utils.NodeCMapReaderFactory : _display_utils.DOMCMapReaderFactory;
|
64
|
+
exports.DefaultCMapReaderFactory = DefaultCMapReaderFactory;
|
63
65
|
let createPDFNetworkStream;
|
64
66
|
|
65
67
|
function setPDFNetworkStreamFactory(pdfNetworkStreamFactory) {
|
@@ -233,7 +235,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
|
|
233
235
|
|
234
236
|
return worker.messageHandler.sendWithPromise("GetDocRequest", {
|
235
237
|
docId,
|
236
|
-
apiVersion: '2.
|
238
|
+
apiVersion: '2.7.570',
|
237
239
|
source: {
|
238
240
|
data: source.data,
|
239
241
|
url: source.url,
|
@@ -430,6 +432,10 @@ class PDFDocumentProxy {
|
|
430
432
|
return this._transport.getJavaScript();
|
431
433
|
}
|
432
434
|
|
435
|
+
getJSActions() {
|
436
|
+
return this._transport.getDocJSActions();
|
437
|
+
}
|
438
|
+
|
433
439
|
getOutline() {
|
434
440
|
return this._transport.getOutline();
|
435
441
|
}
|
@@ -446,6 +452,10 @@ class PDFDocumentProxy {
|
|
446
452
|
return this._transport.getMetadata();
|
447
453
|
}
|
448
454
|
|
455
|
+
getMarkInfo() {
|
456
|
+
return this._transport.getMarkInfo();
|
457
|
+
}
|
458
|
+
|
449
459
|
getData() {
|
450
460
|
return this._transport.getData();
|
451
461
|
}
|
@@ -478,6 +488,18 @@ class PDFDocumentProxy {
|
|
478
488
|
return this._transport.saveDocument(annotationStorage);
|
479
489
|
}
|
480
490
|
|
491
|
+
getFieldObjects() {
|
492
|
+
return this._transport.getFieldObjects();
|
493
|
+
}
|
494
|
+
|
495
|
+
hasJSActions() {
|
496
|
+
return this._transport.hasJSActions();
|
497
|
+
}
|
498
|
+
|
499
|
+
getCalculationOrderIds() {
|
500
|
+
return this._transport.getCalculationOrderIds();
|
501
|
+
}
|
502
|
+
|
481
503
|
}
|
482
504
|
|
483
505
|
exports.PDFDocumentProxy = PDFDocumentProxy;
|
@@ -546,6 +568,10 @@ class PDFPageProxy {
|
|
546
568
|
return this.annotationsPromise;
|
547
569
|
}
|
548
570
|
|
571
|
+
getJSActions() {
|
572
|
+
return this._jsActionsPromise || (this._jsActionsPromise = this._transport.getPageJSActions(this._pageIndex));
|
573
|
+
}
|
574
|
+
|
549
575
|
render({
|
550
576
|
canvasContext,
|
551
577
|
viewport,
|
@@ -606,7 +632,7 @@ class PDFPageProxy {
|
|
606
632
|
pageIndex: this._pageIndex,
|
607
633
|
intent: renderingIntent,
|
608
634
|
renderInteractiveForms: renderInteractiveForms === true,
|
609
|
-
annotationStorage: annotationStorage
|
635
|
+
annotationStorage: annotationStorage?.getAll() || null
|
610
636
|
});
|
611
637
|
}
|
612
638
|
|
@@ -805,6 +831,7 @@ class PDFPageProxy {
|
|
805
831
|
|
806
832
|
this.objs.clear();
|
807
833
|
this.annotationsPromise = null;
|
834
|
+
this._jsActionsPromise = null;
|
808
835
|
this.pendingCleanup = false;
|
809
836
|
return Promise.all(waitOn);
|
810
837
|
}
|
@@ -832,6 +859,7 @@ class PDFPageProxy {
|
|
832
859
|
|
833
860
|
this.objs.clear();
|
834
861
|
this.annotationsPromise = null;
|
862
|
+
this._jsActionsPromise = null;
|
835
863
|
|
836
864
|
if (resetStats && this._stats) {
|
837
865
|
this._stats = new _display_utils.StatTimer();
|
@@ -962,7 +990,7 @@ class PDFPageProxy {
|
|
962
990
|
}
|
963
991
|
}
|
964
992
|
|
965
|
-
intentState.streamReader.cancel(new _util.AbortException(reason
|
993
|
+
intentState.streamReader.cancel(new _util.AbortException(reason?.message));
|
966
994
|
intentState.streamReader = null;
|
967
995
|
|
968
996
|
if (this._transport.destroyed) {
|
@@ -1008,9 +1036,7 @@ class LoopbackPort {
|
|
1008
1036
|
let buffer, result;
|
1009
1037
|
|
1010
1038
|
if ((buffer = value.buffer) && (0, _util.isArrayBuffer)(buffer)) {
|
1011
|
-
|
1012
|
-
|
1013
|
-
if (transferable) {
|
1039
|
+
if (transfers?.includes(buffer)) {
|
1014
1040
|
result = new value.constructor(buffer, value.byteOffset, value.byteLength);
|
1015
1041
|
} else {
|
1016
1042
|
result = new value.constructor(value);
|
@@ -1100,7 +1126,7 @@ const PDFWorker = function PDFWorkerClosure() {
|
|
1100
1126
|
isWorkerDisabled = true;
|
1101
1127
|
fallbackWorkerSrc = "../pdf.worker.js";
|
1102
1128
|
} else if (typeof document === "object" && "currentScript" in document) {
|
1103
|
-
const pdfjsFilePath = document.currentScript
|
1129
|
+
const pdfjsFilePath = document.currentScript?.src;
|
1104
1130
|
|
1105
1131
|
if (pdfjsFilePath) {
|
1106
1132
|
fallbackWorkerSrc = pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i, ".worker$1$2");
|
@@ -1127,7 +1153,7 @@ const PDFWorker = function PDFWorkerClosure() {
|
|
1127
1153
|
let mainWorkerMessageHandler;
|
1128
1154
|
|
1129
1155
|
try {
|
1130
|
-
mainWorkerMessageHandler = globalThis.pdfjsWorker
|
1156
|
+
mainWorkerMessageHandler = globalThis.pdfjsWorker?.WorkerMessageHandler;
|
1131
1157
|
} catch (ex) {}
|
1132
1158
|
|
1133
1159
|
return mainWorkerMessageHandler || null;
|
@@ -1413,6 +1439,10 @@ class WorkerTransport {
|
|
1413
1439
|
this.setupMessageHandler();
|
1414
1440
|
}
|
1415
1441
|
|
1442
|
+
get loadingTaskSettled() {
|
1443
|
+
return this.loadingTask._capability.settled;
|
1444
|
+
}
|
1445
|
+
|
1416
1446
|
destroy() {
|
1417
1447
|
if (this.destroyCapability) {
|
1418
1448
|
return this.destroyCapability.promise;
|
@@ -1435,8 +1465,20 @@ class WorkerTransport {
|
|
1435
1465
|
this.pagePromises.length = 0;
|
1436
1466
|
const terminated = this.messageHandler.sendWithPromise("Terminate", null);
|
1437
1467
|
waitOn.push(terminated);
|
1468
|
+
|
1469
|
+
if (this.loadingTaskSettled) {
|
1470
|
+
const annotationStorageResetModified = this.loadingTask.promise.then(pdfDocument => {
|
1471
|
+
if (pdfDocument.hasOwnProperty("annotationStorage")) {
|
1472
|
+
pdfDocument.annotationStorage.resetModified();
|
1473
|
+
}
|
1474
|
+
}).catch(() => {});
|
1475
|
+
waitOn.push(annotationStorageResetModified);
|
1476
|
+
}
|
1477
|
+
|
1438
1478
|
Promise.all(waitOn).then(() => {
|
1479
|
+
this.commonObjs.clear();
|
1439
1480
|
this.fontLoader.clear();
|
1481
|
+
this._hasJSActionsPromise = null;
|
1440
1482
|
|
1441
1483
|
if (this._networkStream) {
|
1442
1484
|
this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated."));
|
@@ -1665,7 +1707,7 @@ class WorkerTransport {
|
|
1665
1707
|
|
1666
1708
|
let fontRegistry = null;
|
1667
1709
|
|
1668
|
-
if (params.pdfBug && globalThis.FontInspector
|
1710
|
+
if (params.pdfBug && globalThis.FontInspector?.enabled) {
|
1669
1711
|
fontRegistry = {
|
1670
1712
|
registerFont(font, url) {
|
1671
1713
|
globalThis.FontInspector.fontAdded(font, url);
|
@@ -1720,7 +1762,7 @@ class WorkerTransport {
|
|
1720
1762
|
pageProxy.objs.resolve(id, imageData);
|
1721
1763
|
const MAX_IMAGE_SIZE_TO_STORE = 8000000;
|
1722
1764
|
|
1723
|
-
if (imageData
|
1765
|
+
if (imageData?.data?.length > MAX_IMAGE_SIZE_TO_STORE) {
|
1724
1766
|
pageProxy.cleanupAfterRender = true;
|
1725
1767
|
}
|
1726
1768
|
|
@@ -1829,8 +1871,8 @@ class WorkerTransport {
|
|
1829
1871
|
saveDocument(annotationStorage) {
|
1830
1872
|
return this.messageHandler.sendWithPromise("SaveDocument", {
|
1831
1873
|
numPages: this._numPages,
|
1832
|
-
annotationStorage: annotationStorage
|
1833
|
-
filename: this._fullReader
|
1874
|
+
annotationStorage: annotationStorage?.getAll() || null,
|
1875
|
+
filename: this._fullReader?.filename ?? null
|
1834
1876
|
}).finally(() => {
|
1835
1877
|
if (annotationStorage) {
|
1836
1878
|
annotationStorage.resetModified();
|
@@ -1838,6 +1880,18 @@ class WorkerTransport {
|
|
1838
1880
|
});
|
1839
1881
|
}
|
1840
1882
|
|
1883
|
+
getFieldObjects() {
|
1884
|
+
return this.messageHandler.sendWithPromise("GetFieldObjects", null);
|
1885
|
+
}
|
1886
|
+
|
1887
|
+
hasJSActions() {
|
1888
|
+
return this._hasJSActionsPromise || (this._hasJSActionsPromise = this.messageHandler.sendWithPromise("HasJSActions", null));
|
1889
|
+
}
|
1890
|
+
|
1891
|
+
getCalculationOrderIds() {
|
1892
|
+
return this.messageHandler.sendWithPromise("GetCalculationOrderIds", null);
|
1893
|
+
}
|
1894
|
+
|
1841
1895
|
getDestinations() {
|
1842
1896
|
return this.messageHandler.sendWithPromise("GetDestinations", null);
|
1843
1897
|
}
|
@@ -1880,6 +1934,16 @@ class WorkerTransport {
|
|
1880
1934
|
return this.messageHandler.sendWithPromise("GetJavaScript", null);
|
1881
1935
|
}
|
1882
1936
|
|
1937
|
+
getDocJSActions() {
|
1938
|
+
return this.messageHandler.sendWithPromise("GetDocJSActions", null);
|
1939
|
+
}
|
1940
|
+
|
1941
|
+
getPageJSActions(pageIndex) {
|
1942
|
+
return this.messageHandler.sendWithPromise("GetPageJSActions", {
|
1943
|
+
pageIndex
|
1944
|
+
});
|
1945
|
+
}
|
1946
|
+
|
1883
1947
|
getOutline() {
|
1884
1948
|
return this.messageHandler.sendWithPromise("GetOutline", null);
|
1885
1949
|
}
|
@@ -1899,11 +1963,16 @@ class WorkerTransport {
|
|
1899
1963
|
return {
|
1900
1964
|
info: results[0],
|
1901
1965
|
metadata: results[1] ? new _metadata.Metadata(results[1]) : null,
|
1902
|
-
contentDispositionFilename: this._fullReader
|
1966
|
+
contentDispositionFilename: this._fullReader?.filename ?? null,
|
1967
|
+
contentLength: this._fullReader?.contentLength ?? null
|
1903
1968
|
};
|
1904
1969
|
});
|
1905
1970
|
}
|
1906
1971
|
|
1972
|
+
getMarkInfo() {
|
1973
|
+
return this.messageHandler.sendWithPromise("GetMarkInfo", null);
|
1974
|
+
}
|
1975
|
+
|
1907
1976
|
getStats() {
|
1908
1977
|
return this.messageHandler.sendWithPromise("GetStats", null);
|
1909
1978
|
}
|
@@ -1924,6 +1993,7 @@ class WorkerTransport {
|
|
1924
1993
|
|
1925
1994
|
this.commonObjs.clear();
|
1926
1995
|
this.fontLoader.clear();
|
1996
|
+
this._hasJSActionsPromise = null;
|
1927
1997
|
});
|
1928
1998
|
}
|
1929
1999
|
|
@@ -1972,7 +2042,7 @@ class PDFObjects {
|
|
1972
2042
|
|
1973
2043
|
has(objId) {
|
1974
2044
|
const obj = this._objs[objId];
|
1975
|
-
return obj
|
2045
|
+
return obj?.resolved || false;
|
1976
2046
|
}
|
1977
2047
|
|
1978
2048
|
resolve(objId, data) {
|
@@ -2064,7 +2134,7 @@ const InternalRenderTask = function InternalRenderTaskClosure() {
|
|
2064
2134
|
canvasInRendering.add(this._canvas);
|
2065
2135
|
}
|
2066
2136
|
|
2067
|
-
if (this._pdfBug && globalThis.StepperManager
|
2137
|
+
if (this._pdfBug && globalThis.StepperManager?.enabled) {
|
2068
2138
|
this.stepper = globalThis.StepperManager.create(this._pageIndex);
|
2069
2139
|
this.stepper.init(this.operatorList);
|
2070
2140
|
this.stepper.nextBreakPoint = this.stepper.getNextBreakPoint();
|
@@ -2178,7 +2248,7 @@ const InternalRenderTask = function InternalRenderTaskClosure() {
|
|
2178
2248
|
return InternalRenderTask;
|
2179
2249
|
}();
|
2180
2250
|
|
2181
|
-
const version = '2.
|
2251
|
+
const version = '2.7.570';
|
2182
2252
|
exports.version = version;
|
2183
|
-
const build = '
|
2253
|
+
const build = 'f2c7338b0';
|
2184
2254
|
exports.build = build;
|