[api-minor] Remove deprecated getDocument options (PR 18776 follow-up)
This commit is contained in:
parent
a8c35a9e0c
commit
490e740365
@ -43,15 +43,14 @@ import {
|
|||||||
PrintAnnotationStorage,
|
PrintAnnotationStorage,
|
||||||
SerializableEmpty,
|
SerializableEmpty,
|
||||||
} from "./annotation_storage.js";
|
} from "./annotation_storage.js";
|
||||||
|
import { FontFaceObject, FontLoader } from "./font_loader.js";
|
||||||
import {
|
import {
|
||||||
deprecated,
|
|
||||||
isDataScheme,
|
isDataScheme,
|
||||||
isValidFetchUrl,
|
isValidFetchUrl,
|
||||||
PageViewport,
|
PageViewport,
|
||||||
RenderingCancelledException,
|
RenderingCancelledException,
|
||||||
StatTimer,
|
StatTimer,
|
||||||
} from "./display_utils.js";
|
} from "./display_utils.js";
|
||||||
import { FontFaceObject, FontLoader } from "./font_loader.js";
|
|
||||||
import {
|
import {
|
||||||
NodeCanvasFactory,
|
NodeCanvasFactory,
|
||||||
NodeCMapReaderFactory,
|
NodeCMapReaderFactory,
|
||||||
@ -339,19 +338,6 @@ function getDocument(src = {}) {
|
|||||||
isValidFetchUrl(cMapUrl, document.baseURI) &&
|
isValidFetchUrl(cMapUrl, document.baseURI) &&
|
||||||
isValidFetchUrl(standardFontDataUrl, document.baseURI));
|
isValidFetchUrl(standardFontDataUrl, document.baseURI));
|
||||||
|
|
||||||
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
|
||||||
if (src.canvasFactory) {
|
|
||||||
deprecated(
|
|
||||||
"`canvasFactory`-instance option, please use `CanvasFactory` instead."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (src.filterFactory) {
|
|
||||||
deprecated(
|
|
||||||
"`filterFactory`-instance option, please use `FilterFactory` instead."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Parameters only intended for development/testing purposes.
|
// Parameters only intended for development/testing purposes.
|
||||||
const styleElement =
|
const styleElement =
|
||||||
typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING")
|
typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user