diff --git a/src/core/worker.js b/src/core/worker.js index d2c680c53..5fe692bf5 100644 --- a/src/core/worker.js +++ b/src/core/worker.js @@ -507,7 +507,7 @@ class WorkerMessageHandler { }); handler.on("GetStats", function wphSetupGetStats(data) { - return pdfManager.pdfDocument.xref.stats; + return pdfManager.ensureXRef("stats"); }); handler.on("GetAnnotations", function ({ pageIndex, intent }) {