Merge pull request #20898 from calixteman/issue20847

Don't throw when printing with pdfBug enabled
This commit is contained in:
calixteman 2026-03-17 12:39:48 +01:00 committed by GitHub
commit 1f94023d42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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