You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pdfjs-dist

Package Overview
Dependencies
Maintainers
3
Versions
1551
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

to
5.3.93

4

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

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

"optionalDependencies": {
"@napi-rs/canvas": "^0.1.67"
"@napi-rs/canvas": "^0.1.71"
},

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

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

declare class AnnotationElement {
static _hasPopupData({ titleObj, contentsObj, richText }: {
titleObj: any;
static _hasPopupData({ contentsObj, richText }: {
contentsObj: any;

@@ -159,0 +158,0 @@ richText: any;

@@ -121,2 +121,3 @@ export type AnnotationEditorLayer = import("./annotation_editor_layer.js").AnnotationEditorLayer;

get editorType(): any;
get mode(): any;
/**

@@ -260,2 +261,7 @@ * Get the properties to update in the UI for this editor.

/**
* Get the toolbar buttons for this editor.
* @returns {Array<Array<string|object>>|null}
*/
get toolbarButtons(): Array<Array<string | object>> | null;
/**
* Add a toolbar for this editor.

@@ -268,4 +274,8 @@ * @returns {Promise<EditorToolbar|null>}

getClientDimensions(): DOMRect;
addAltTextButton(): Promise<void>;
/**
* Create the alt text for this editor.
* @returns {object}
*/
createAltText(): object;
/**
* Set the alt text data.

@@ -272,0 +282,0 @@ */

@@ -55,2 +55,4 @@ /**

/** @inheritdoc */
get toolbarButtons(): any;
/** @inheritdoc */
fixAndSetPosition(): void;

@@ -57,0 +59,0 @@ /** @inheritdoc */

@@ -34,2 +34,4 @@ /**

};
/** @inheritdoc */
get toolbarButtons(): any[][] | null;
addSignature(data: any, heightInPage: any, description: any, uuid: any): void;

@@ -36,0 +38,0 @@ getFromImage(bitmap: any): {

@@ -29,2 +29,4 @@ /**

onceAdded(focus: any): void;
/** @inheritdoc */
get toolbarButtons(): (string | object)[][];
setCanvas(annotationElementId: any, canvas: any): void;

@@ -31,0 +33,0 @@ onScaleChanging(): void;

@@ -9,5 +9,7 @@ export class EditorToolbar {

show(): void;
addDeleteButton(): void;
addAltText(altText: any): Promise<void>;
addColorPicker(colorPicker: any): void;
addEditSignatureButton(signatureManager: any): Promise<void>;
addButton(name: any, tool: any): Promise<void>;
updateEditSignatureButton(description: any): void;

@@ -14,0 +16,0 @@ remove(): void;

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

static get _keyboardManager(): any;
constructor(container: any, viewer: any, altTextManager: any, signatureManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, enableUpdatedAddImage: any, enableNewAltTextWhenAddingImage: any, mlManager: any, editorUndoBar: any, supportsPinchToZoom: any);
constructor(container: any, viewer: any, viewerAlert: any, altTextManager: any, signatureManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, enableUpdatedAddImage: any, enableNewAltTextWhenAddingImage: any, mlManager: any, editorUndoBar: any, supportsPinchToZoom: any);
_editorUndoBar: null;

@@ -70,2 +70,3 @@ _signal: AbortSignal;

addToAnnotationStorage(editor: AnnotationEditor): void;
a11yAlert(messageId: any, args?: null): void;
blur(): void;

@@ -146,4 +147,6 @@ focus(): void;

* keyboard action.
* @param {boolean} [mustEnterInEditMode] - true if the editor must enter in
* edit mode.
*/
updateMode(mode: number, editId?: string | null, isFromKeyboard?: boolean): Promise<void>;
updateMode(mode: number, editId?: string | null, isFromKeyboard?: boolean, mustEnterInEditMode?: boolean): Promise<void>;
addNewEditorFromKeyboard(): void;

@@ -150,0 +153,0 @@ /**

@@ -17,1 +17,3 @@ export class ColorConverters {

}
export const DateFormats: string[];
export const TimeFormats: string[];

@@ -27,3 +27,3 @@ export type PDFDocumentProxy = import("../src/display/api").PDFDocumentProxy;

export function getOriginalIndex(diffs: any, pos: any, len: any): any[];
export function normalize(text: any): any[];
export function normalize(text: any, options?: {}): any[];
/**

@@ -30,0 +30,0 @@ * @typedef {Object} PDFFindControllerOptions

@@ -531,2 +531,4 @@ export type PDFDocumentProxy = import("../src/display/api").PDFDocumentProxy;

* keyboard action.
* @property {boolean} [mustEnterInEditMode] - True if the editor must enter
* edit mode.
*/

@@ -536,3 +538,3 @@ /**

*/
set annotationEditorMode({ mode, editId, isFromKeyboard }: {
set annotationEditorMode({ mode, editId, isFromKeyboard, mustEnterInEditMode, }: {
/**

@@ -551,2 +553,7 @@ * - The editor mode (none, FreeText, ink, ...).

isFromKeyboard?: boolean | undefined;
/**
* - True if the editor must enter
* edit mode.
*/
mustEnterInEditMode?: boolean | undefined;
});

@@ -567,2 +574,7 @@ get annotationEditorMode(): {

isFromKeyboard?: boolean | undefined;
/**
* - True if the editor must enter
* edit mode.
*/
mustEnterInEditMode?: boolean | undefined;
};

@@ -569,0 +581,0 @@ refresh(noUpdate?: boolean, updateArgs?: any): void;

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

Sorry, the diff of this file is not supported yet