pdfjs-serverless 0.7.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -82
- package/dist/index.d.mts +17 -0
- package/dist/index.mjs +1 -1
- package/dist/types/src/display/annotation_layer.d.ts +14 -0
- package/dist/types/src/display/annotation_storage.d.ts +1 -8
- package/dist/types/src/display/api.d.ts +80 -34
- package/dist/types/src/display/canvas.d.ts +19 -27
- package/dist/types/src/display/display_utils.d.ts +11 -0
- package/dist/types/src/display/draw_layer.d.ts +2 -1
- package/dist/types/src/display/editor/alt_text.d.ts +1 -1
- package/dist/types/src/display/editor/annotation_editor_layer.d.ts +4 -3
- package/dist/types/src/display/editor/draw.d.ts +2 -1
- package/dist/types/src/display/editor/drawers/contour.d.ts +3 -0
- package/dist/types/src/display/editor/drawers/inkdraw.d.ts +2 -1
- package/dist/types/src/display/editor/drawers/signaturedraw.d.ts +79 -0
- package/dist/types/src/display/editor/editor.d.ts +5 -2
- package/dist/types/src/display/editor/highlight.d.ts +1 -0
- package/dist/types/src/display/editor/ink.d.ts +8 -2
- package/dist/types/src/display/editor/signature.d.ts +80 -0
- package/dist/types/src/display/editor/stamp.d.ts +3 -5
- package/dist/types/src/display/editor/toolbar.d.ts +2 -0
- package/dist/types/src/display/editor/tools.d.ts +5 -7
- package/dist/types/src/display/font_loader.d.ts +3 -8
- package/dist/types/src/display/metadata.d.ts +1 -2
- package/dist/types/src/display/network.d.ts +1 -1
- package/dist/types/src/display/network_utils.d.ts +2 -3
- package/dist/types/src/display/node_utils.d.ts +7 -0
- package/dist/types/src/display/optional_content_config.d.ts +1 -1
- package/dist/types/src/display/pattern_helper.d.ts +4 -2
- package/dist/types/src/display/text_layer.d.ts +9 -9
- package/dist/types/src/display/touch_manager.d.ts +5 -1
- package/dist/types/src/display/wasm_factory.d.ts +20 -0
- package/dist/types/src/display/worker_options.d.ts +2 -2
- package/dist/types/src/pdf.d.ts +9 -3
- package/dist/types/src/shared/message_handler.d.ts +2 -3
- package/dist/types/src/shared/util.d.ts +128 -109
- package/dist/types/web/annotation_editor_layer_builder.d.ts +15 -3
- package/dist/types/web/annotation_layer_builder.d.ts +35 -5
- package/dist/types/web/autolinker.d.ts +28 -0
- package/dist/types/web/base_pdf_page_view.d.ts +27 -0
- package/dist/types/web/draw_layer_builder.d.ts +13 -2
- package/dist/types/web/pdf_find_controller.d.ts +2 -0
- package/dist/types/web/pdf_link_service.d.ts +0 -1
- package/dist/types/web/pdf_page_detail_view.d.ts +32 -0
- package/dist/types/web/pdf_page_view.d.ts +41 -14
- package/dist/types/web/pdf_rendering_queue.d.ts +2 -1
- package/dist/types/web/pdf_thumbnail_view.d.ts +23 -3
- package/dist/types/web/pdf_thumbnail_viewer.d.ts +21 -1
- package/dist/types/web/pdf_viewer.d.ts +31 -0
- package/dist/types/web/struct_tree_layer_builder.d.ts +17 -1
- package/dist/types/web/text_layer_builder.d.ts +25 -17
- package/dist/types/web/xfa_layer_builder.d.ts +14 -3
- package/package.json +13 -21
- package/dist/index.d.ts +0 -4
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Basic editor in order to generate an Stamp annotation annotation containing
|
|
3
|
+
* a signature drawing.
|
|
4
|
+
*/
|
|
5
|
+
export class SignatureEditor extends DrawingEditor {
|
|
6
|
+
static _type: string;
|
|
7
|
+
static _editorType: number;
|
|
8
|
+
static _defaultDrawingOptions: null;
|
|
9
|
+
/** @inheritdoc */
|
|
10
|
+
static initialize(l10n: any, uiManager: any): void;
|
|
11
|
+
/** @inheritdoc */
|
|
12
|
+
static getDefaultDrawingOptions(options: any): any;
|
|
13
|
+
static get typesMap(): any;
|
|
14
|
+
static computeTelemetryFinalData(data: any): {
|
|
15
|
+
hasAltText: any;
|
|
16
|
+
hasNoAltText: any;
|
|
17
|
+
};
|
|
18
|
+
/** @inheritdoc */
|
|
19
|
+
static deserializeDraw(pageX: any, pageY: any, pageWidth: any, pageHeight: any, innerMargin: any, data: any): any;
|
|
20
|
+
defaultL10nId: string;
|
|
21
|
+
/** @inheritdoc */
|
|
22
|
+
get telemetryFinalData(): {
|
|
23
|
+
type: string;
|
|
24
|
+
hasDescription: boolean;
|
|
25
|
+
};
|
|
26
|
+
setUuid(uuid: any): void;
|
|
27
|
+
getUuid(): null;
|
|
28
|
+
set description(description: null);
|
|
29
|
+
get description(): null;
|
|
30
|
+
getSignaturePreview(): {
|
|
31
|
+
areContours: any;
|
|
32
|
+
outline: InkDrawOutline;
|
|
33
|
+
};
|
|
34
|
+
addSignature(data: any, heightInPage: any, description: any, uuid: any): void;
|
|
35
|
+
getFromImage(bitmap: any): {
|
|
36
|
+
outline: InkDrawOutline;
|
|
37
|
+
newCurves: any[];
|
|
38
|
+
areContours: any;
|
|
39
|
+
thickness: any;
|
|
40
|
+
width: any;
|
|
41
|
+
height: any;
|
|
42
|
+
} | null;
|
|
43
|
+
getFromText(text: any, fontInfo: any): {
|
|
44
|
+
outline: InkDrawOutline;
|
|
45
|
+
newCurves: any[];
|
|
46
|
+
areContours: any;
|
|
47
|
+
thickness: any;
|
|
48
|
+
width: any;
|
|
49
|
+
height: any;
|
|
50
|
+
} | null;
|
|
51
|
+
getDrawnSignature(curves: any): {
|
|
52
|
+
outline: InkDrawOutline;
|
|
53
|
+
newCurves: any[];
|
|
54
|
+
areContours: any;
|
|
55
|
+
thickness: any;
|
|
56
|
+
width: any;
|
|
57
|
+
height: any;
|
|
58
|
+
} | null;
|
|
59
|
+
/** @inheritdoc */
|
|
60
|
+
createDrawingOptions({ areContours, thickness }: {
|
|
61
|
+
areContours: any;
|
|
62
|
+
thickness: any;
|
|
63
|
+
}): void;
|
|
64
|
+
_drawingOptions: any;
|
|
65
|
+
/** @inheritdoc */
|
|
66
|
+
serialize(isForCopying?: boolean): {
|
|
67
|
+
annotationType: number;
|
|
68
|
+
isSignature: boolean;
|
|
69
|
+
areContours: boolean;
|
|
70
|
+
color: number[];
|
|
71
|
+
thickness: any;
|
|
72
|
+
pageIndex: number;
|
|
73
|
+
rect: any;
|
|
74
|
+
rotation: number;
|
|
75
|
+
structTreeParentId: any;
|
|
76
|
+
} | null;
|
|
77
|
+
#private;
|
|
78
|
+
}
|
|
79
|
+
import { DrawingEditor } from "./draw.js";
|
|
80
|
+
import { InkDrawOutline } from "./drawers/inkdraw.js";
|
|
@@ -6,10 +6,8 @@ export class StampEditor extends AnnotationEditor {
|
|
|
6
6
|
static _editorType: number;
|
|
7
7
|
/** @inheritdoc */
|
|
8
8
|
static initialize(l10n: any, uiManager: any): void;
|
|
9
|
-
static get supportedTypes(): any;
|
|
10
|
-
static get supportedTypesStr(): any;
|
|
11
9
|
/** @inheritdoc */
|
|
12
|
-
static isHandlingMimeForPasting(mime: any):
|
|
10
|
+
static isHandlingMimeForPasting(mime: any): boolean;
|
|
13
11
|
/** @inheritdoc */
|
|
14
12
|
static paste(item: any, parent: any): void;
|
|
15
13
|
static computeTelemetryFinalData(data: any): {
|
|
@@ -19,6 +17,7 @@ export class StampEditor extends AnnotationEditor {
|
|
|
19
17
|
/** @inheritdoc */
|
|
20
18
|
static deserialize(data: any, parent: any, uiManager: any): Promise<AnnotationEditor | null>;
|
|
21
19
|
constructor(params: any);
|
|
20
|
+
defaultL10nId: string;
|
|
22
21
|
/** @inheritdoc */
|
|
23
22
|
get telemetryFinalData(): {
|
|
24
23
|
type: string;
|
|
@@ -27,6 +26,7 @@ export class StampEditor extends AnnotationEditor {
|
|
|
27
26
|
mlGuessAltText(imageData?: null, updateAltTextData?: boolean): Promise<any>;
|
|
28
27
|
/** @inheritdoc */
|
|
29
28
|
onceAdded(focus: any): void;
|
|
29
|
+
setCanvas(annotationElementId: any, canvas: any): void;
|
|
30
30
|
onScaleChanging(): void;
|
|
31
31
|
copyCanvas(maxDataDimension: any, maxPreviewDimension: any, createImageData?: boolean): {
|
|
32
32
|
canvas: HTMLCanvasElement | null;
|
|
@@ -39,8 +39,6 @@ export class StampEditor extends AnnotationEditor {
|
|
|
39
39
|
} | null;
|
|
40
40
|
};
|
|
41
41
|
/** @inheritdoc */
|
|
42
|
-
getImageForAltText(): null;
|
|
43
|
-
/** @inheritdoc */
|
|
44
42
|
serialize(isForCopying?: boolean, context?: null): Object | null;
|
|
45
43
|
/** @inheritdoc */
|
|
46
44
|
renderAnnotationElement(annotation: any): null;
|
|
@@ -8,6 +8,8 @@ export class EditorToolbar {
|
|
|
8
8
|
show(): void;
|
|
9
9
|
addAltText(altText: any): Promise<void>;
|
|
10
10
|
addColorPicker(colorPicker: any): void;
|
|
11
|
+
addEditSignatureButton(signatureManager: any): Promise<void>;
|
|
12
|
+
updateEditSignatureButton(description: any): void;
|
|
11
13
|
remove(): void;
|
|
12
14
|
#private;
|
|
13
15
|
}
|
|
@@ -12,7 +12,7 @@ export class AnnotationEditorUIManager {
|
|
|
12
12
|
static TRANSLATE_SMALL: number;
|
|
13
13
|
static TRANSLATE_BIG: number;
|
|
14
14
|
static get _keyboardManager(): any;
|
|
15
|
-
constructor(container: any, viewer: any, altTextManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, enableUpdatedAddImage: any, enableNewAltTextWhenAddingImage: any, mlManager: any, editorUndoBar: any, supportsPinchToZoom: any);
|
|
15
|
+
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);
|
|
16
16
|
_editorUndoBar: null;
|
|
17
17
|
_signal: AbortSignal;
|
|
18
18
|
_eventBus: any;
|
|
@@ -38,6 +38,8 @@ export class AnnotationEditorUIManager {
|
|
|
38
38
|
setCurrentDrawingSession(layer: AnnotationEditorLayer): void;
|
|
39
39
|
setMainHighlightColorPicker(colorPicker: any): void;
|
|
40
40
|
editAltText(editor: any, firstTime?: boolean): void;
|
|
41
|
+
getSignature(editor: any): void;
|
|
42
|
+
get signatureManager(): null;
|
|
41
43
|
switchToMode(mode: any, callback: any): void;
|
|
42
44
|
setPreference(name: any, value: any): void;
|
|
43
45
|
onSetPreference({ name, value }: {
|
|
@@ -310,6 +312,8 @@ export class AnnotationEditorUIManager {
|
|
|
310
312
|
annotationElementId: any;
|
|
311
313
|
}): void;
|
|
312
314
|
renderAnnotationElement(annotation: any): void;
|
|
315
|
+
setMissingCanvas(annotationId: any, annotationElementId: any, canvas: any): void;
|
|
316
|
+
addMissingCanvas(annotationId: any, editor: any): void;
|
|
313
317
|
#private;
|
|
314
318
|
}
|
|
315
319
|
export function bindEvents(obj: any, element: any, names: any): void;
|
|
@@ -412,9 +416,3 @@ export class KeyboardManager {
|
|
|
412
416
|
exec(self: Object, event: KeyboardEvent): void;
|
|
413
417
|
#private;
|
|
414
418
|
}
|
|
415
|
-
/**
|
|
416
|
-
* Convert a number between 0 and 100 into an hex number between 0 and 255.
|
|
417
|
-
* @param {number} opacity
|
|
418
|
-
* @return {string}
|
|
419
|
-
*/
|
|
420
|
-
export function opacityToHex(opacity: number): string;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
export class FontFaceObject {
|
|
2
|
-
constructor(translatedData: any,
|
|
3
|
-
disableFontFace?: boolean | undefined;
|
|
4
|
-
fontExtraProperties?: boolean | undefined;
|
|
5
|
-
inspectFont?: null | undefined;
|
|
6
|
-
});
|
|
2
|
+
constructor(translatedData: any, inspectFont?: null);
|
|
7
3
|
compiledGlyphs: any;
|
|
8
|
-
disableFontFace: boolean;
|
|
9
|
-
fontExtraProperties: boolean;
|
|
10
4
|
_inspectFont: any;
|
|
11
5
|
createNativeFontFace(): FontFace | null;
|
|
12
6
|
createFontFaceRule(): string | null;
|
|
@@ -26,8 +20,9 @@ export class FontLoader {
|
|
|
26
20
|
removeNativeFontFace(nativeFontFace: any): void;
|
|
27
21
|
insertRule(rule: any): void;
|
|
28
22
|
clear(): void;
|
|
29
|
-
loadSystemFont({ systemFontInfo: info, _inspectFont }: {
|
|
23
|
+
loadSystemFont({ systemFontInfo: info, disableFontFace, _inspectFont, }: {
|
|
30
24
|
systemFontInfo: any;
|
|
25
|
+
disableFontFace: any;
|
|
31
26
|
_inspectFont: any;
|
|
32
27
|
}): Promise<void>;
|
|
33
28
|
bind(font: any): Promise<void>;
|
|
@@ -46,7 +46,7 @@ declare class PDFNetworkStreamFullRequestReader implements IPDFStreamReader {
|
|
|
46
46
|
_cachedChunks: any[];
|
|
47
47
|
_requests: any[];
|
|
48
48
|
_done: boolean;
|
|
49
|
-
_storedError: import("../shared/util.js").
|
|
49
|
+
_storedError: import("../shared/util.js").ResponseException | undefined;
|
|
50
50
|
_filename: string | null;
|
|
51
51
|
onProgress: any;
|
|
52
52
|
_onHeadersReceived(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function createHeaders(isHttp: any, httpHeaders: any): Headers;
|
|
2
|
-
export function
|
|
2
|
+
export function createResponseError(status: any, url: any): ResponseException;
|
|
3
3
|
export function extractFilenameFromHeader(responseHeaders: any): string | null;
|
|
4
4
|
export function getResponseOrigin(url: any): string | null;
|
|
5
5
|
export function validateRangeRequestCapabilities({ responseHeaders, isHttp, rangeChunkSize, disableRange, }: {
|
|
@@ -12,5 +12,4 @@ export function validateRangeRequestCapabilities({ responseHeaders, isHttp, rang
|
|
|
12
12
|
suggestedLength: undefined;
|
|
13
13
|
};
|
|
14
14
|
export function validateResponseStatus(status: any): boolean;
|
|
15
|
-
import {
|
|
16
|
-
import { UnexpectedResponseException } from "../shared/util.js";
|
|
15
|
+
import { ResponseException } from "../shared/util.js";
|
|
@@ -19,7 +19,14 @@ export class NodeStandardFontDataFactory extends BaseStandardFontDataFactory {
|
|
|
19
19
|
*/
|
|
20
20
|
_fetch(url: any): Promise<Uint8Array<ArrayBuffer>>;
|
|
21
21
|
}
|
|
22
|
+
export class NodeWasmFactory extends BaseWasmFactory {
|
|
23
|
+
/**
|
|
24
|
+
* @ignore
|
|
25
|
+
*/
|
|
26
|
+
_fetch(url: any): Promise<Uint8Array<ArrayBuffer>>;
|
|
27
|
+
}
|
|
22
28
|
import { BaseCanvasFactory } from "./canvas_factory.js";
|
|
23
29
|
import { BaseCMapReaderFactory } from "./cmap_reader_factory.js";
|
|
24
30
|
import { BaseFilterFactory } from "./filter_factory.js";
|
|
25
31
|
import { BaseStandardFontDataFactory } from "./standard_fontdata_factory.js";
|
|
32
|
+
import { BaseWasmFactory } from "./wasm_factory.js";
|
|
@@ -6,7 +6,8 @@ export namespace PathType {
|
|
|
6
6
|
}
|
|
7
7
|
export class TilingPattern {
|
|
8
8
|
static MAX_PATTERN_SIZE: number;
|
|
9
|
-
constructor(IR: any,
|
|
9
|
+
constructor(IR: any, ctx: any, canvasGraphicsFactory: any, baseTransform: any);
|
|
10
|
+
color: any;
|
|
10
11
|
operatorList: any;
|
|
11
12
|
matrix: any;
|
|
12
13
|
bbox: any;
|
|
@@ -14,7 +15,6 @@ export class TilingPattern {
|
|
|
14
15
|
ystep: any;
|
|
15
16
|
paintType: any;
|
|
16
17
|
tilingType: any;
|
|
17
|
-
color: any;
|
|
18
18
|
ctx: any;
|
|
19
19
|
canvasGraphicsFactory: any;
|
|
20
20
|
baseTransform: any;
|
|
@@ -31,6 +31,7 @@ export class TilingPattern {
|
|
|
31
31
|
};
|
|
32
32
|
clipBbox(graphics: any, x0: any, y0: any, x1: any, y1: any): void;
|
|
33
33
|
setFillAndStrokeStyleToContext(graphics: any, paintType: any, color: any): void;
|
|
34
|
+
isModifyingCurrentTransform(): boolean;
|
|
34
35
|
getPattern(ctx: any, owner: any, inverse: any, pathType: any): any;
|
|
35
36
|
}
|
|
36
37
|
declare class RadialAxialShadingPattern extends BaseShadingPattern {
|
|
@@ -68,6 +69,7 @@ declare class DummyShadingPattern extends BaseShadingPattern {
|
|
|
68
69
|
getPattern(): string;
|
|
69
70
|
}
|
|
70
71
|
declare class BaseShadingPattern {
|
|
72
|
+
isModifyingCurrentTransform(): boolean;
|
|
71
73
|
getPattern(): void;
|
|
72
74
|
}
|
|
73
75
|
export {};
|
|
@@ -31,24 +31,24 @@ export type TextLayerUpdateParameters = {
|
|
|
31
31
|
onBefore?: Function | undefined;
|
|
32
32
|
};
|
|
33
33
|
export class TextLayer {
|
|
34
|
-
static "__#
|
|
35
|
-
static "__#
|
|
36
|
-
static "__#
|
|
37
|
-
static "__#
|
|
38
|
-
static "__#
|
|
34
|
+
static "__#54@#ascentCache": Map<any, any>;
|
|
35
|
+
static "__#54@#canvasContexts": Map<any, any>;
|
|
36
|
+
static "__#54@#canvasCtxFonts": WeakMap<object, any>;
|
|
37
|
+
static "__#54@#minFontSize": null;
|
|
38
|
+
static "__#54@#pendingTextLayers": Set<any>;
|
|
39
39
|
static get fontFamilyMap(): any;
|
|
40
40
|
/**
|
|
41
41
|
* Clean-up global textLayer data.
|
|
42
42
|
* @returns {undefined}
|
|
43
43
|
*/
|
|
44
44
|
static cleanup(): undefined;
|
|
45
|
-
static "__#
|
|
46
|
-
static "__#
|
|
45
|
+
static "__#54@#getCtx"(lang?: null): any;
|
|
46
|
+
static "__#54@#ensureCtxFont"(ctx: any, size: any, family: any): void;
|
|
47
47
|
/**
|
|
48
48
|
* Compute the minimum font size enforced by the browser.
|
|
49
49
|
*/
|
|
50
|
-
static "__#
|
|
51
|
-
static "__#
|
|
50
|
+
static "__#54@#ensureMinFontSizeComputed"(): void;
|
|
51
|
+
static "__#54@#getAscent"(fontFamily: any, style: any, lang: any): any;
|
|
52
52
|
/**
|
|
53
53
|
* @param {TextLayerParameters} options
|
|
54
54
|
*/
|
|
@@ -8,7 +8,11 @@ export class TouchManager {
|
|
|
8
8
|
onPinchEnd?: null | undefined;
|
|
9
9
|
signal: any;
|
|
10
10
|
});
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* NOTE: Don't shadow this value since `devicePixelRatio` may change if the
|
|
13
|
+
* window resolution changes, e.g. if the viewer is moved to another monitor.
|
|
14
|
+
*/
|
|
15
|
+
get MIN_TOUCH_DISTANCE_TO_PINCH(): number;
|
|
12
16
|
destroy(): void;
|
|
13
17
|
#private;
|
|
14
18
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export class BaseWasmFactory {
|
|
2
|
+
constructor({ baseUrl }: {
|
|
3
|
+
baseUrl?: null | undefined;
|
|
4
|
+
});
|
|
5
|
+
baseUrl: any;
|
|
6
|
+
fetch({ filename }: {
|
|
7
|
+
filename: any;
|
|
8
|
+
}): Promise<Uint8Array<ArrayBufferLike>>;
|
|
9
|
+
/**
|
|
10
|
+
* @ignore
|
|
11
|
+
* @returns {Promise<Uint8Array>}
|
|
12
|
+
*/
|
|
13
|
+
_fetch(url: any): Promise<Uint8Array>;
|
|
14
|
+
}
|
|
15
|
+
export class DOMWasmFactory extends BaseWasmFactory {
|
|
16
|
+
/**
|
|
17
|
+
* @ignore
|
|
18
|
+
*/
|
|
19
|
+
_fetch(url: any): Promise<Uint8Array<any>>;
|
|
20
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export class GlobalWorkerOptions {
|
|
2
|
-
static "__#
|
|
3
|
-
static "__#
|
|
2
|
+
static "__#50@#port": null;
|
|
3
|
+
static "__#50@#src": string;
|
|
4
4
|
/**
|
|
5
5
|
* @param {Worker | null} workerPort - Defines global port for worker process.
|
|
6
6
|
* Overrides the `workerSrc` option.
|
package/dist/types/src/pdf.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { AnnotationEditorType } from "./shared/util.js";
|
|
|
11
11
|
import { AnnotationEditorUIManager } from "./display/editor/tools.js";
|
|
12
12
|
import { AnnotationLayer } from "./display/annotation_layer.js";
|
|
13
13
|
import { AnnotationMode } from "./shared/util.js";
|
|
14
|
+
import { AnnotationType } from "./shared/util.js";
|
|
14
15
|
import { build } from "./display/api.js";
|
|
15
16
|
import { ColorPicker } from "./display/editor/color_picker.js";
|
|
16
17
|
import { createValidAbsoluteUrl } from "./shared/util.js";
|
|
@@ -21,13 +22,15 @@ import { fetchData } from "./display/display_utils.js";
|
|
|
21
22
|
import { getDocument } from "./display/api.js";
|
|
22
23
|
import { getFilenameFromUrl } from "./display/display_utils.js";
|
|
23
24
|
import { getPdfFilenameFromUrl } from "./display/display_utils.js";
|
|
25
|
+
import { getUuid } from "./shared/util.js";
|
|
24
26
|
import { getXfaPageViewport } from "./display/display_utils.js";
|
|
25
27
|
import { GlobalWorkerOptions } from "./display/worker_options.js";
|
|
26
28
|
import { ImageKind } from "./shared/util.js";
|
|
27
29
|
import { InvalidPDFException } from "./shared/util.js";
|
|
28
30
|
import { isDataScheme } from "./display/display_utils.js";
|
|
29
31
|
import { isPdfFile } from "./display/display_utils.js";
|
|
30
|
-
import {
|
|
32
|
+
import { isValidExplicitDest } from "./display/api.js";
|
|
33
|
+
import { MathClamp } from "./shared/util.js";
|
|
31
34
|
import { noContextMenu } from "./display/display_utils.js";
|
|
32
35
|
import { normalizeUnicode } from "./shared/util.js";
|
|
33
36
|
import { OPS } from "./shared/util.js";
|
|
@@ -39,14 +42,17 @@ import { PDFWorker } from "./display/api.js";
|
|
|
39
42
|
import { PermissionFlag } from "./shared/util.js";
|
|
40
43
|
import { PixelsPerInch } from "./display/display_utils.js";
|
|
41
44
|
import { RenderingCancelledException } from "./display/display_utils.js";
|
|
45
|
+
import { ResponseException } from "./shared/util.js";
|
|
42
46
|
import { setLayerDimensions } from "./display/display_utils.js";
|
|
43
47
|
import { shadow } from "./shared/util.js";
|
|
48
|
+
import { SignatureExtractor } from "./display/editor/drawers/signaturedraw.js";
|
|
44
49
|
import { stopEvent } from "./display/display_utils.js";
|
|
50
|
+
import { SupportedImageMimeTypes } from "./display/display_utils.js";
|
|
45
51
|
import { TextLayer } from "./display/text_layer.js";
|
|
46
52
|
import { TouchManager } from "./display/touch_manager.js";
|
|
47
|
-
import {
|
|
53
|
+
import { updateUrlHash } from "./shared/util.js";
|
|
48
54
|
import { Util } from "./shared/util.js";
|
|
49
55
|
import { VerbosityLevel } from "./shared/util.js";
|
|
50
56
|
import { version } from "./display/api.js";
|
|
51
57
|
import { XfaLayer } from "./display/xfa_layer.js";
|
|
52
|
-
export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, build, ColorPicker, createValidAbsoluteUrl, DOMSVGFactory, DrawLayer, FeatureTest, fetchData, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getXfaPageViewport, GlobalWorkerOptions, ImageKind, InvalidPDFException, isDataScheme, isPdfFile,
|
|
58
|
+
export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, AnnotationType, build, ColorPicker, createValidAbsoluteUrl, DOMSVGFactory, DrawLayer, FeatureTest, fetchData, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getUuid, getXfaPageViewport, GlobalWorkerOptions, ImageKind, InvalidPDFException, isDataScheme, isPdfFile, isValidExplicitDest, MathClamp, noContextMenu, normalizeUnicode, OPS, OutputScale, PasswordResponses, PDFDataRangeTransport, PDFDateString, PDFWorker, PermissionFlag, PixelsPerInch, RenderingCancelledException, ResponseException, setLayerDimensions, shadow, SignatureExtractor, stopEvent, SupportedImageMimeTypes, TextLayer, TouchManager, updateUrlHash, Util, VerbosityLevel, version, XfaLayer };
|
|
@@ -40,10 +40,9 @@ export class MessageHandler {
|
|
|
40
40
|
destroy(): void;
|
|
41
41
|
#private;
|
|
42
42
|
}
|
|
43
|
-
export function wrapReason(ex: any): PasswordException | UnknownErrorException | InvalidPDFException |
|
|
43
|
+
export function wrapReason(ex: any): PasswordException | UnknownErrorException | InvalidPDFException | ResponseException | AbortException;
|
|
44
44
|
import { PasswordException } from "./util.js";
|
|
45
45
|
import { UnknownErrorException } from "./util.js";
|
|
46
46
|
import { InvalidPDFException } from "./util.js";
|
|
47
|
-
import {
|
|
48
|
-
import { UnexpectedResponseException } from "./util.js";
|
|
47
|
+
import { ResponseException } from "./util.js";
|
|
49
48
|
import { AbortException } from "./util.js";
|