mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-22 16:05:56 +02:00
Merge pull request #20898 from calixteman/issue20847
Don't throw when printing with pdfBug enabled
This commit is contained in:
commit
1f94023d42
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user