Don't throw when printing with pdfBug enabled

It fixes #20847.
This commit is contained in:
calixteman 2026-03-16 23:34:54 +01:00 committed by Calixte Denizet
parent 394727a28c
commit b7d71eb7f8

View File

@ -1540,8 +1540,11 @@ class PDFPageProxy {
this._pdfBug && globalThis.StepperManager?.enabled
);
const shouldRecordOperations =
!this.recordedBBoxes && (recordOperations || recordForDebugger);
const shouldRecordImages = !this.imageCoordinates && recordImages;
!!canvas &&
!this.recordedBBoxes &&
(recordOperations || recordForDebugger);
const shouldRecordImages =
!!canvas && !this.imageCoordinates && recordImages;
const complete = error => {
intentState.renderTasks.delete(internalRenderTask);