Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdfjs-dist

Package Overview
Dependencies
Maintainers
0
Versions
1543
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfjs-dist - npm Package Compare versions

Comparing version 4.4.168 to 4.5.136

6

package.json
{
"name": "pdfjs-dist",
"version": "4.4.168",
"version": "4.5.136",
"main": "build/pdf.mjs",

@@ -12,3 +12,3 @@ "types": "types/src/pdf.d.ts",

],
"homepage": "http://mozilla.github.io/pdf.js/",
"homepage": "https://mozilla.github.io/pdf.js/",
"bugs": "https://github.com/mozilla/pdf.js/issues",

@@ -18,3 +18,3 @@ "license": "Apache-2.0",

"canvas": "^2.11.2",
"path2d": "^0.2.0"
"path2d": "^0.2.1"
},

@@ -21,0 +21,0 @@ "browser": {

@@ -92,2 +92,3 @@ export type PDFPageProxy = import("./api").PDFPageProxy;

popupShow: any[] | undefined;
hasEditableAnnotations(): boolean;
/**

@@ -117,3 +118,2 @@ * Render a new annotation layer with all annotation elements.

render(): HTMLElement | undefined;
get _isEditable(): any;
}

@@ -159,2 +159,3 @@ export class InkAnnotationElement extends AnnotationElement {

container: HTMLElement | undefined;
get _isEditable(): any;
get hasPopupData(): boolean;

@@ -216,3 +217,2 @@ updateEdited(params: any): void;

addHighlightArea(): void;
get _isEditable(): boolean;
_editOnDoubleClick(): void;

@@ -219,0 +219,0 @@ #private;

@@ -66,2 +66,10 @@ /**

get editorStats(): any;
resetModifiedIds(): void;
/**
* @returns {{ids: Set<string>, hash: string}}
*/
get modifiedIds(): {
ids: Set<string>;
hash: string;
};
#private;

@@ -85,2 +93,3 @@ }

};
get modifiedIds(): any;
#private;

@@ -87,0 +96,0 @@ }

@@ -443,2 +443,6 @@ export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;

printAnnotationStorage?: PrintAnnotationStorage | undefined;
/**
* - Render the page in editing mode.
*/
isEditing?: boolean | undefined;
};

@@ -470,2 +474,6 @@ /**

printAnnotationStorage?: PrintAnnotationStorage | undefined;
/**
* - Render the page in editing mode.
*/
isEditing?: boolean | undefined;
};

@@ -1177,2 +1185,3 @@ /**

* @property {PrintAnnotationStorage} [printAnnotationStorage]
* @property {boolean} [isEditing] - Render the page in editing mode.
*/

@@ -1198,2 +1207,3 @@ /**

* @property {PrintAnnotationStorage} [printAnnotationStorage]
* @property {boolean} [isEditing] - Render the page in editing mode.
*/

@@ -1301,3 +1311,3 @@ /**

*/
render({ canvasContext, viewport, intent, annotationMode, transform, background, optionalContentConfigPromise, annotationCanvasMap, pageColors, printAnnotationStorage, }: RenderParameters): RenderTask;
render({ canvasContext, viewport, intent, annotationMode, transform, background, optionalContentConfigPromise, annotationCanvasMap, pageColors, printAnnotationStorage, isEditing, }: RenderParameters): RenderTask;
/**

@@ -1309,3 +1319,3 @@ * @param {GetOperatorListParameters} params - Page getOperatorList

*/
getOperatorList({ intent, annotationMode, printAnnotationStorage, }?: GetOperatorListParameters): Promise<PDFOperatorList>;
getOperatorList({ intent, annotationMode, printAnnotationStorage, isEditing, }?: GetOperatorListParameters): Promise<PDFOperatorList>;
/**

@@ -1312,0 +1322,0 @@ * NOTE: All occurrences of whitespace will be replaced by

@@ -123,3 +123,5 @@ export class CanvasGraphics {

setStrokeRGBColor(r: any, g: any, b: any): void;
setStrokeTransparent(): void;
setFillRGBColor(r: any, g: any, b: any): void;
setFillTransparent(): void;
_getPattern(objId: any, matrix?: null): any;

@@ -126,0 +128,0 @@ shadingFill(objId: any): void;

@@ -79,2 +79,3 @@ export type AnnotationEditorUIManager = import("./tools.js").AnnotationEditorUIManager;

addCommands(params: Object): void;
toggleDrawing(enabled?: boolean): void;
togglePointerEvents(enabled?: boolean): void;

@@ -81,0 +82,0 @@ toggleAnnotationLayerPointerEvents(enabled?: boolean): void;

@@ -15,3 +15,3 @@ export type AnnotationEditor = import("./editor.js").AnnotationEditor;

static get _keyboardManager(): any;
constructor(container: any, viewer: any, altTextManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, mlManager: any);
constructor(container: any, viewer: any, altTextManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, enableUpdatedAddImage: any, mlManager: any);
_signal: AbortSignal;

@@ -26,3 +26,4 @@ _eventBus: any;

mlGuess(data: any): Promise<any>;
get hasMLManager(): boolean;
isMLEnabledFor(name: any): Promise<boolean>;
get useNewAltTextFlow(): boolean;
get hcmFilter(): any;

@@ -34,2 +35,4 @@ get direction(): any;

editAltText(editor: any): void;
switchToMode(mode: any, callback: any): void;
setPreference(name: any, value: any): void;
onPageChanging({ pageNumber }: {

@@ -36,0 +39,0 @@ pageNumber: any;

@@ -33,7 +33,2 @@ export type PageViewport = import("./display_utils").PageViewport;

};
export function renderTextLayer(...args: any[]): {
promise: Promise<any>;
textDivs: HTMLElement[];
textContentItemsStr: string[];
} | undefined;
export class TextLayer {

@@ -89,2 +84,1 @@ static "__#45@#ascentCache": Map<any, any>;

}
export function updateTextLayer(): void;

@@ -35,3 +35,2 @@ export type OnProgressParameters = import("./display/api").OnProgressParameters;

import { OPS } from "./shared/util.js";
import { Outliner } from "./display/editor/outliner.js";
import { PasswordResponses } from "./shared/util.js";

@@ -44,3 +43,2 @@ import { PDFDataRangeTransport } from "./display/api.js";

import { RenderingCancelledException } from "./display/display_utils.js";
import { renderTextLayer } from "./display/text_layer.js";
import { setLayerDimensions } from "./display/display_utils.js";

@@ -50,3 +48,2 @@ import { shadow } from "./shared/util.js";

import { UnexpectedResponseException } from "./shared/util.js";
import { updateTextLayer } from "./display/text_layer.js";
import { Util } from "./shared/util.js";

@@ -56,2 +53,2 @@ import { VerbosityLevel } from "./shared/util.js";

import { XfaLayer } from "./display/xfa_layer.js";
export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, build, CMapCompressionType, ColorPicker, createValidAbsoluteUrl, DOMSVGFactory, DrawLayer, FeatureTest, fetchData, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getXfaPageViewport, GlobalWorkerOptions, ImageKind, InvalidPDFException, isDataScheme, isPdfFile, MissingPDFException, noContextMenu, normalizeUnicode, OPS, Outliner, PasswordResponses, PDFDataRangeTransport, PDFDateString, PDFWorker, PermissionFlag, PixelsPerInch, RenderingCancelledException, renderTextLayer, setLayerDimensions, shadow, TextLayer, UnexpectedResponseException, updateTextLayer, Util, VerbosityLevel, version, XfaLayer };
export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, build, CMapCompressionType, ColorPicker, createValidAbsoluteUrl, DOMSVGFactory, DrawLayer, FeatureTest, fetchData, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getXfaPageViewport, GlobalWorkerOptions, ImageKind, InvalidPDFException, isDataScheme, isPdfFile, MissingPDFException, noContextMenu, normalizeUnicode, OPS, PasswordResponses, PDFDataRangeTransport, PDFDateString, PDFWorker, PermissionFlag, PixelsPerInch, RenderingCancelledException, setLayerDimensions, shadow, TextLayer, UnexpectedResponseException, Util, VerbosityLevel, version, XfaLayer };

@@ -307,2 +307,4 @@ declare const AbortException_base: any;

let constructPath: number;
let setStrokeTransparent: number;
let setFillTransparent: number;
}

@@ -345,2 +347,3 @@ export namespace PageActionEventType {

export let ANNOTATIONS_DISABLE: number;
export let IS_EDITING: number;
export let OPLIST: number;

@@ -347,0 +350,0 @@ }

@@ -79,4 +79,5 @@ export type PDFPageProxy = import("../src/display/api").PDFPageProxy;

hide(): void;
hasEditableAnnotations(): boolean;
#private;
}
import { AnnotationLayer } from "../src/pdf";
export class AppOptions {
static eventBus: any;
static get(name: any): any;
static getAll(kind?: null, defaultOnly?: boolean): any;
static set(name: any, value: any): void;
static setAll(options: any, init?: boolean): void;
static remove(name: any): void;
static setAll(options: any, prefs?: boolean): void;
}

@@ -13,3 +13,4 @@ export namespace OptionKind {

let WORKER: number;
let EVENT_DISPATCH: number;
let PREFERENCE: number;
}

@@ -124,2 +124,3 @@ export type PageViewport = import("../src/display/display_utils").PageViewport;

destroy(): void;
hasEditableAnnotations(): boolean;
get _textHighlighter(): any;

@@ -137,2 +138,3 @@ /**

}): void;
toggleEditingMode(isEditing: any): void;
/**

@@ -139,0 +141,0 @@ * @typedef {Object} PDFPageViewUpdateParameters

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc