mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
[api-minor] Remove deprecated getDocument
options (PR 18776 follow-up)
This commit is contained in:
parent
a8c35a9e0c
commit
490e740365
1 changed files with 1 additions and 15 deletions
|
@ -43,15 +43,14 @@ import {
|
|||
PrintAnnotationStorage,
|
||||
SerializableEmpty,
|
||||
} from "./annotation_storage.js";
|
||||
import { FontFaceObject, FontLoader } from "./font_loader.js";
|
||||
import {
|
||||
deprecated,
|
||||
isDataScheme,
|
||||
isValidFetchUrl,
|
||||
PageViewport,
|
||||
RenderingCancelledException,
|
||||
StatTimer,
|
||||
} from "./display_utils.js";
|
||||
import { FontFaceObject, FontLoader } from "./font_loader.js";
|
||||
import {
|
||||
NodeCanvasFactory,
|
||||
NodeCMapReaderFactory,
|
||||
|
@ -339,19 +338,6 @@ function getDocument(src = {}) {
|
|||
isValidFetchUrl(cMapUrl, 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.
|
||||
const styleElement =
|
||||
typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue