[api-major] Remove various deprecated functionality and options

This commit is contained in:
Jonas Jenwald 2023-07-31 11:20:14 +02:00
parent 0fc0dc3960
commit f87ec67ab1
6 changed files with 1 additions and 91 deletions

View file

@ -279,13 +279,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;