Merge pull request #16774 from Snuffleupagus/rm-deprecated-options

[api-major] Remove various deprecated functionality and options
This commit is contained in:
Jonas Jenwald 2023-10-03 15:12:39 +02:00 committed by GitHub
commit 0edc490e1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1 additions and 91 deletions

View file

@ -280,13 +280,6 @@ class PDFViewer {
this.enablePrintAutoRotate = options.enablePrintAutoRotate || false;
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
this.removePageBorders = options.removePageBorders || false;
if (options.useOnlyCssZoom) {
console.error(
"useOnlyCssZoom was removed, please use `maxCanvasPixels = 0` instead."
);
options.maxCanvasPixels = 0;
}
}
this.isOffscreenCanvasSupported =
options.isOffscreenCanvasSupported ?? true;