Revert "Add deprecated
handling of the now removed AnnotationStorage
API-parameters" (PR 13207 follow-up)
This reverts commit 737a8e846d
, since it's included in the latest beta version `2.9.359`.
This commit is contained in:
parent
13dbbdcfb0
commit
d8a7c75b4a
@ -962,12 +962,6 @@ class PDFDocumentProxy {
|
||||
* {Uint8Array} containing the full data of the saved document.
|
||||
*/
|
||||
saveDocument() {
|
||||
if (
|
||||
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
|
||||
arguments.length > 0
|
||||
) {
|
||||
deprecated("saveDocument no longer accepts any options.");
|
||||
}
|
||||
if (
|
||||
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
|
||||
this._transport.annotationStorage.size <= 0
|
||||
@ -1282,16 +1276,6 @@ class PDFPageProxy {
|
||||
includeAnnotationStorage = false,
|
||||
optionalContentConfigPromise = null,
|
||||
}) {
|
||||
if (
|
||||
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
|
||||
arguments[0]?.annotationStorage !== undefined
|
||||
) {
|
||||
deprecated(
|
||||
"render no longer accepts an `annotationStorage` option, " +
|
||||
"please use the `includeAnnotationStorage`-boolean instead."
|
||||
);
|
||||
includeAnnotationStorage ||= !!arguments[0].annotationStorage;
|
||||
}
|
||||
if (this._stats) {
|
||||
this._stats.time("Overall");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user