pdf-oxide 0.3.37 → 0.3.38
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/lib/builders/document-builder.d.ts +199 -0
- package/lib/builders/document-builder.js +434 -0
- package/lib/builders/index.d.ts +3 -2
- package/lib/builders/index.js +3 -2
- package/lib/document-editor.d.ts +57 -0
- package/lib/document-editor.js +184 -0
- package/lib/errors.js +3 -4
- package/lib/form-field-manager.js +3 -1
- package/lib/index.d.ts +40 -6
- package/lib/index.js +253 -90
- package/lib/managers/accessibility-manager.js +19 -8
- package/lib/managers/annotation-manager.js +9 -9
- package/lib/managers/barcode-manager.js +18 -7
- package/lib/managers/batch-manager.js +2 -5
- package/lib/managers/cache-manager.js +1 -3
- package/lib/managers/compliance-manager.js +58 -19
- package/lib/managers/document-utility-manager.js +6 -6
- package/lib/managers/dom-pdf-creator.js +9 -9
- package/lib/managers/enterprise-manager.js +4 -1
- package/lib/managers/extended-managers.js +8 -1
- package/lib/managers/extraction-manager.js +7 -2
- package/lib/managers/final-utilities.d.ts +3 -3
- package/lib/managers/final-utilities.js +9 -4
- package/lib/managers/hybrid-ml-advanced.js +22 -6
- package/lib/managers/index.d.ts +22 -22
- package/lib/managers/index.js +23 -23
- package/lib/managers/layer-manager.js +20 -21
- package/lib/managers/ocr-manager.d.ts +2 -2
- package/lib/managers/ocr-manager.js +7 -7
- package/lib/managers/optimization-manager.js +24 -4
- package/lib/managers/page-manager.js +5 -6
- package/lib/managers/pattern-detection.d.ts +1 -1
- package/lib/managers/pattern-detection.js +4 -6
- package/lib/managers/search-manager.js +3 -3
- package/lib/managers/signature-manager.js +149 -40
- package/lib/managers/streams.js +8 -2
- package/lib/managers/xfa-manager.js +69 -19
- package/lib/native-loader.d.ts +7 -0
- package/lib/native-loader.js +62 -0
- package/lib/native.d.ts +16 -0
- package/lib/native.js +69 -0
- package/lib/pdf-creator-manager.js +4 -1
- package/lib/result-accessors-manager.js +3 -1
- package/lib/timestamp.d.ts +54 -0
- package/lib/timestamp.js +115 -0
- package/lib/tsa-client.d.ts +44 -0
- package/lib/tsa-client.js +67 -0
- package/lib/types/common.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.js +1 -1
- package/lib/types/manager-types.js +4 -2
- package/lib/workers/index.d.ts +1 -1
- package/lib/workers/pool.js +2 -4
- package/package.json +16 -10
- package/prebuilds/darwin-arm64/pdf_oxide.node +0 -0
- package/prebuilds/darwin-x64/pdf_oxide.node +0 -0
- package/prebuilds/linux-arm64/pdf_oxide.node +0 -0
- package/prebuilds/linux-x64/pdf_oxide.node +0 -0
- package/prebuilds/win32-x64/pdf_oxide.node +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page rotation angles valid for {@link DocumentEditor.setPageRotation}.
|
|
3
|
+
*/
|
|
4
|
+
export type PageRotation = 0 | 90 | 180 | 270;
|
|
5
|
+
/**
|
|
6
|
+
* PDF editor bound to a concrete file on disk. Open via
|
|
7
|
+
* {@link DocumentEditor.open}; always pair with {@link close} (or use
|
|
8
|
+
* `using` / the explicit-resource-management protocol once it's
|
|
9
|
+
* stable in your toolchain).
|
|
10
|
+
*/
|
|
11
|
+
export declare class DocumentEditor {
|
|
12
|
+
private _handle;
|
|
13
|
+
private _closed;
|
|
14
|
+
private constructor();
|
|
15
|
+
/** Open a PDF file for editing. */
|
|
16
|
+
static open(path: string): DocumentEditor;
|
|
17
|
+
/** True if the editor has been closed. Subsequent calls will throw. */
|
|
18
|
+
get closed(): boolean;
|
|
19
|
+
private _throwIfClosed;
|
|
20
|
+
/** Current page count. */
|
|
21
|
+
pageCount(): number;
|
|
22
|
+
/** True if the editor has unsaved modifications. */
|
|
23
|
+
isModified(): boolean;
|
|
24
|
+
setTitle(title: string): void;
|
|
25
|
+
setAuthor(author: string): void;
|
|
26
|
+
getProducer(): string;
|
|
27
|
+
setProducer(producer: string): void;
|
|
28
|
+
getCreationDate(): string;
|
|
29
|
+
setCreationDate(date: string): void;
|
|
30
|
+
/** Delete the page at `pageIndex` (zero-based). */
|
|
31
|
+
deletePage(pageIndex: number): void;
|
|
32
|
+
/** Move a page. Indices refer to positions before the move. */
|
|
33
|
+
movePage(fromIndex: number, toIndex: number): void;
|
|
34
|
+
/** Set rotation on a page (0/90/180/270). */
|
|
35
|
+
setPageRotation(pageIndex: number, degrees: PageRotation): void;
|
|
36
|
+
/**
|
|
37
|
+
* Append every page of another PDF to the end of this document.
|
|
38
|
+
*/
|
|
39
|
+
mergeFrom(sourcePath: string): void;
|
|
40
|
+
/** Flatten form fields across the entire document. */
|
|
41
|
+
flattenForms(): void;
|
|
42
|
+
/** Flatten annotations. If `pageIndex` is omitted, flattens all pages. */
|
|
43
|
+
flattenAnnotations(pageIndex?: number): void;
|
|
44
|
+
/** Set a form field value by fully-qualified field name. */
|
|
45
|
+
setFormFieldValue(fieldName: string, value: string): void;
|
|
46
|
+
/** Import an FDF file (bytes) into the document's form. */
|
|
47
|
+
importFdfBytes(fdf: Buffer | Uint8Array): void;
|
|
48
|
+
/** Import an XFDF file (bytes) into the document's form. */
|
|
49
|
+
importXfdfBytes(xfdf: Buffer | Uint8Array): void;
|
|
50
|
+
/** Save the document to `path`. */
|
|
51
|
+
save(path: string): void;
|
|
52
|
+
/** Save with AES-256 encryption (user + owner passwords). */
|
|
53
|
+
saveEncrypted(path: string, userPassword: string, ownerPassword: string): void;
|
|
54
|
+
/** Release the native handle. Safe to call multiple times. */
|
|
55
|
+
close(): void;
|
|
56
|
+
}
|
|
57
|
+
export default DocumentEditor;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DocumentEditor — thin TS wrapper around the N-API `editor*` exports
|
|
3
|
+
* in `binding.cc`. Mirrors the C# `DocumentEditor` / Go
|
|
4
|
+
* `DocumentEditor` surface.
|
|
5
|
+
*
|
|
6
|
+
* Every mutation is a synchronous call into the Rust core; the same
|
|
7
|
+
* handle is carried until {@link DocumentEditor.close}. Throws plain
|
|
8
|
+
* `Error` with the native message on failure.
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { DocumentEditor } from 'pdf-oxide';
|
|
12
|
+
*
|
|
13
|
+
* const editor = DocumentEditor.open('in.pdf');
|
|
14
|
+
* try {
|
|
15
|
+
* editor.mergeFrom('other.pdf');
|
|
16
|
+
* editor.deletePage(0);
|
|
17
|
+
* editor.movePage(0, 2);
|
|
18
|
+
* editor.setPageRotation(0, 90);
|
|
19
|
+
* editor.save('out.pdf');
|
|
20
|
+
* } finally {
|
|
21
|
+
* editor.close();
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
// Load the native addon via the shared prebuild-aware loader.
|
|
26
|
+
// Importing `./index.js` would create an ESM cycle (index.js imports
|
|
27
|
+
// us back), so we go through `./native.js` — same resolver, no cycle,
|
|
28
|
+
// resolves against `prebuilds/<triple>/pdf_oxide.node` in the
|
|
29
|
+
// published package.
|
|
30
|
+
import { loadNative } from './native.js';
|
|
31
|
+
const native = loadNative();
|
|
32
|
+
/**
|
|
33
|
+
* PDF editor bound to a concrete file on disk. Open via
|
|
34
|
+
* {@link DocumentEditor.open}; always pair with {@link close} (or use
|
|
35
|
+
* `using` / the explicit-resource-management protocol once it's
|
|
36
|
+
* stable in your toolchain).
|
|
37
|
+
*/
|
|
38
|
+
export class DocumentEditor {
|
|
39
|
+
constructor(handle) {
|
|
40
|
+
this._closed = false;
|
|
41
|
+
this._handle = handle;
|
|
42
|
+
}
|
|
43
|
+
/** Open a PDF file for editing. */
|
|
44
|
+
static open(path) {
|
|
45
|
+
if (typeof path !== 'string' || path.length === 0) {
|
|
46
|
+
throw new TypeError('path must be a non-empty string');
|
|
47
|
+
}
|
|
48
|
+
const handle = native.editorOpen(path);
|
|
49
|
+
return new DocumentEditor(handle);
|
|
50
|
+
}
|
|
51
|
+
/** True if the editor has been closed. Subsequent calls will throw. */
|
|
52
|
+
get closed() {
|
|
53
|
+
return this._closed;
|
|
54
|
+
}
|
|
55
|
+
_throwIfClosed() {
|
|
56
|
+
if (this._closed)
|
|
57
|
+
throw new Error('DocumentEditor is closed');
|
|
58
|
+
}
|
|
59
|
+
/** Current page count. */
|
|
60
|
+
pageCount() {
|
|
61
|
+
this._throwIfClosed();
|
|
62
|
+
return native.editorGetPageCount(this._handle);
|
|
63
|
+
}
|
|
64
|
+
/** True if the editor has unsaved modifications. */
|
|
65
|
+
isModified() {
|
|
66
|
+
this._throwIfClosed();
|
|
67
|
+
return native.editorIsModified(this._handle);
|
|
68
|
+
}
|
|
69
|
+
// ----- metadata ---------------------------------------------------
|
|
70
|
+
setTitle(title) {
|
|
71
|
+
this._throwIfClosed();
|
|
72
|
+
native.editorSetTitle(this._handle, title);
|
|
73
|
+
}
|
|
74
|
+
setAuthor(author) {
|
|
75
|
+
this._throwIfClosed();
|
|
76
|
+
native.editorSetAuthor(this._handle, author);
|
|
77
|
+
}
|
|
78
|
+
getProducer() {
|
|
79
|
+
this._throwIfClosed();
|
|
80
|
+
return native.editorGetProducer(this._handle);
|
|
81
|
+
}
|
|
82
|
+
setProducer(producer) {
|
|
83
|
+
this._throwIfClosed();
|
|
84
|
+
// NOTE: today this is a no-op in Rust core (src/ffi.rs:532-586).
|
|
85
|
+
// The wrapper is in place so the API surface matches
|
|
86
|
+
// Python / C# / Go.
|
|
87
|
+
if (native.editorSetProducer) {
|
|
88
|
+
native.editorSetProducer(this._handle, producer);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
getCreationDate() {
|
|
92
|
+
this._throwIfClosed();
|
|
93
|
+
return native.editorGetCreationDate(this._handle);
|
|
94
|
+
}
|
|
95
|
+
setCreationDate(date) {
|
|
96
|
+
this._throwIfClosed();
|
|
97
|
+
// Same Rust-core stub note as setProducer.
|
|
98
|
+
if (native.editorSetCreationDate) {
|
|
99
|
+
native.editorSetCreationDate(this._handle, date);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
// ----- page mutations ---------------------------------------------
|
|
103
|
+
/** Delete the page at `pageIndex` (zero-based). */
|
|
104
|
+
deletePage(pageIndex) {
|
|
105
|
+
this._throwIfClosed();
|
|
106
|
+
native.editorDeletePage(this._handle, pageIndex);
|
|
107
|
+
}
|
|
108
|
+
/** Move a page. Indices refer to positions before the move. */
|
|
109
|
+
movePage(fromIndex, toIndex) {
|
|
110
|
+
this._throwIfClosed();
|
|
111
|
+
native.editorMovePage(this._handle, fromIndex, toIndex);
|
|
112
|
+
}
|
|
113
|
+
/** Set rotation on a page (0/90/180/270). */
|
|
114
|
+
setPageRotation(pageIndex, degrees) {
|
|
115
|
+
this._throwIfClosed();
|
|
116
|
+
native.editorSetPageRotation(this._handle, pageIndex, degrees);
|
|
117
|
+
}
|
|
118
|
+
// ----- document-level mutations -----------------------------------
|
|
119
|
+
/**
|
|
120
|
+
* Append every page of another PDF to the end of this document.
|
|
121
|
+
*/
|
|
122
|
+
mergeFrom(sourcePath) {
|
|
123
|
+
this._throwIfClosed();
|
|
124
|
+
if (typeof sourcePath !== 'string' || sourcePath.length === 0) {
|
|
125
|
+
throw new TypeError('sourcePath must be a non-empty string');
|
|
126
|
+
}
|
|
127
|
+
native.editorMergeFrom(this._handle, sourcePath);
|
|
128
|
+
}
|
|
129
|
+
/** Flatten form fields across the entire document. */
|
|
130
|
+
flattenForms() {
|
|
131
|
+
this._throwIfClosed();
|
|
132
|
+
native.editorFlattenForms(this._handle);
|
|
133
|
+
}
|
|
134
|
+
/** Flatten annotations. If `pageIndex` is omitted, flattens all pages. */
|
|
135
|
+
flattenAnnotations(pageIndex) {
|
|
136
|
+
this._throwIfClosed();
|
|
137
|
+
if (pageIndex === undefined) {
|
|
138
|
+
native.editorFlattenAnnotations(this._handle);
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
native.editorFlattenAnnotations(this._handle, pageIndex);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
/** Set a form field value by fully-qualified field name. */
|
|
145
|
+
setFormFieldValue(fieldName, value) {
|
|
146
|
+
this._throwIfClosed();
|
|
147
|
+
native.editorSetFormFieldValue(this._handle, fieldName, value);
|
|
148
|
+
}
|
|
149
|
+
/** Import an FDF file (bytes) into the document's form. */
|
|
150
|
+
importFdfBytes(fdf) {
|
|
151
|
+
this._throwIfClosed();
|
|
152
|
+
native.editorImportFdfBytes(this._handle, fdf);
|
|
153
|
+
}
|
|
154
|
+
/** Import an XFDF file (bytes) into the document's form. */
|
|
155
|
+
importXfdfBytes(xfdf) {
|
|
156
|
+
this._throwIfClosed();
|
|
157
|
+
native.editorImportXfdfBytes(this._handle, xfdf);
|
|
158
|
+
}
|
|
159
|
+
// ----- save paths -------------------------------------------------
|
|
160
|
+
/** Save the document to `path`. */
|
|
161
|
+
save(path) {
|
|
162
|
+
this._throwIfClosed();
|
|
163
|
+
if (typeof path !== 'string' || path.length === 0) {
|
|
164
|
+
throw new TypeError('path must be a non-empty string');
|
|
165
|
+
}
|
|
166
|
+
native.editorSave(this._handle, path);
|
|
167
|
+
}
|
|
168
|
+
/** Save with AES-256 encryption (user + owner passwords). */
|
|
169
|
+
saveEncrypted(path, userPassword, ownerPassword) {
|
|
170
|
+
this._throwIfClosed();
|
|
171
|
+
native.editorSaveEncrypted(this._handle, path, userPassword, ownerPassword);
|
|
172
|
+
}
|
|
173
|
+
// ----- lifecycle --------------------------------------------------
|
|
174
|
+
/** Release the native handle. Safe to call multiple times. */
|
|
175
|
+
close() {
|
|
176
|
+
if (!this._closed) {
|
|
177
|
+
if (native.editorFree) {
|
|
178
|
+
native.editorFree(this._handle);
|
|
179
|
+
}
|
|
180
|
+
this._closed = true;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
export default DocumentEditor;
|
package/lib/errors.js
CHANGED
|
@@ -135,9 +135,7 @@ export class PdfException extends Error {
|
|
|
135
135
|
parts.push(`Context:\n${contextStr}`);
|
|
136
136
|
}
|
|
137
137
|
if (this.recovery.suggestions.length > 0) {
|
|
138
|
-
const suggestionsStr = this.recovery.suggestions
|
|
139
|
-
.map((s) => ` • ${s}`)
|
|
140
|
-
.join('\n');
|
|
138
|
+
const suggestionsStr = this.recovery.suggestions.map((s) => ` • ${s}`).join('\n');
|
|
141
139
|
parts.push(`Recovery Suggestions:\n${suggestionsStr}`);
|
|
142
140
|
}
|
|
143
141
|
if (this.recovery.alternativeApproach) {
|
|
@@ -931,7 +929,8 @@ export function mapFfiErrorCode(errorCode, message) {
|
|
|
931
929
|
case 11:
|
|
932
930
|
return new AccessibilityException(message ?? 'Accessibility error: Tagging, structure tree, or alt text operation failed');
|
|
933
931
|
case 12:
|
|
934
|
-
return new OptimizationException(message ??
|
|
932
|
+
return new OptimizationException(message ??
|
|
933
|
+
'Optimization error: Font subsetting, image downsampling, or deduplication failed');
|
|
935
934
|
default:
|
|
936
935
|
return new UnknownError(message ?? `Unknown error (code: ${errorCode})`);
|
|
937
936
|
}
|
|
@@ -560,7 +560,9 @@ export class FormFieldManager extends EventEmitter {
|
|
|
560
560
|
clearCachePattern(pattern) {
|
|
561
561
|
const regex = new RegExp(pattern);
|
|
562
562
|
const keysToDelete = Array.from(this.resultCache.keys()).filter((key) => regex.test(key));
|
|
563
|
-
keysToDelete.forEach((key) =>
|
|
563
|
+
keysToDelete.forEach((key) => {
|
|
564
|
+
this.resultCache.delete(key);
|
|
565
|
+
});
|
|
564
566
|
}
|
|
565
567
|
}
|
|
566
568
|
export default FormFieldManager;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,11 +1,31 @@
|
|
|
1
|
+
import { AnnotationBuilder, ConversionOptionsBuilder, DocumentBuilder, EmbeddedFont, MetadataBuilder, PageBuilder, PdfBuilder, SearchOptionsBuilder } from './builders/index';
|
|
2
|
+
import { DocumentEditor } from './document-editor';
|
|
3
|
+
import { AccessibilityException, CertificateLoadFailed, ComplianceException, EncryptionException, ErrorCategory, ErrorSeverity, InvalidStateException, IoException, mapFfiErrorCode, OcrException, OptimizationException, ParseException, PdfException, RedactionException, RenderingException, SearchException, SignatureException, SigningFailed, UnknownError, UnsupportedFeatureException, ValidationException, wrapAsyncMethod, wrapError, wrapMethod } from './errors';
|
|
4
|
+
import { AnnotationManager, type BatchDocument, BatchManager, type BatchOptions, type BatchProgress, type BatchResult, type BatchStatistics, createExtractionStream, createMetadataStream, createSearchStream, ExtractionManager, ExtractionStream, LayerManager, MetadataManager, MetadataStream, OutlineManager, RenderingManager, SearchManager, SearchStream, SecurityManager } from './managers/index';
|
|
1
5
|
import type { Table } from './types/common.js';
|
|
2
|
-
import {
|
|
3
|
-
import { PdfBuilder, ConversionOptionsBuilder, MetadataBuilder, AnnotationBuilder, SearchOptionsBuilder } from './builders/index';
|
|
4
|
-
import { OutlineManager, MetadataManager, ExtractionManager, SearchManager, SecurityManager, AnnotationManager, LayerManager, RenderingManager, SearchStream, ExtractionStream, MetadataStream, createSearchStream, createExtractionStream, createMetadataStream, BatchManager, type BatchDocument, type BatchProgress, type BatchResult, type BatchOptions, type BatchStatistics } from './managers/index';
|
|
6
|
+
import type { WorkerResult, WorkerTask } from './workers/index';
|
|
5
7
|
import { WorkerPool, workerPool } from './workers/index';
|
|
6
|
-
import type { WorkerTask, WorkerResult } from './workers/index';
|
|
7
8
|
declare const OcrManager: any, OCRManager: any, OCRDetectionMode: any, ComplianceManager: any, PdfALevel: any, PdfXLevel: any, PdfUALevel: any, ComplianceIssueType: any, IssueSeverity: any, SignatureManager: any, SignatureAlgorithm: any, DigestAlgorithm: any, BarcodeManager: any, BarcodeFormat: any, BarcodeErrorCorrection: any, FormFieldManager: any, FormFieldType: any, FieldVisibility: any, ResultAccessorsManager: any, SearchResultProperties: any, FontProperties: any, ImageProperties: any, AnnotationProperties: any, ThumbnailManager: any, ThumbnailSize: any, ImageFormat: any, HybridMLManager: any, PageComplexity: any, ContentType: any, XfaManager: any, XfaFormType: any, XfaFieldType: any, CacheManager: any, EditingManager: any, AccessibilityManager: any, OptimizationManager: any, EnterpriseManager: any;
|
|
8
9
|
declare const OCRLanguage: any;
|
|
10
|
+
/**
|
|
11
|
+
* Options mirroring Rust's `RenderOptions` struct
|
|
12
|
+
* (see `src/rendering/page_renderer.rs:41`). Used by
|
|
13
|
+
* {@link PdfDocumentImpl.renderPageWithOptions}.
|
|
14
|
+
*/
|
|
15
|
+
export interface RenderOptions {
|
|
16
|
+
/** Resolution (default 150). */
|
|
17
|
+
dpi?: number;
|
|
18
|
+
/** Output format (default PNG). */
|
|
19
|
+
format?: 'png' | 'jpeg';
|
|
20
|
+
/** RGBA 0..=1 tuple (default opaque white). */
|
|
21
|
+
background?: [number, number, number, number];
|
|
22
|
+
/** Drop background fill entirely (overrides `background`). */
|
|
23
|
+
transparentBackground?: boolean;
|
|
24
|
+
/** Render annotation layer (default true). */
|
|
25
|
+
renderAnnotations?: boolean;
|
|
26
|
+
/** JPEG quality 1..=100 (default 85). */
|
|
27
|
+
jpegQuality?: number;
|
|
28
|
+
}
|
|
9
29
|
declare class PdfDocumentImpl {
|
|
10
30
|
private _handle;
|
|
11
31
|
private _closed;
|
|
@@ -47,6 +67,18 @@ declare class PdfDocumentImpl {
|
|
|
47
67
|
extractTables(pageIndex: number): Table[];
|
|
48
68
|
extractPaths(pageIndex: number): any;
|
|
49
69
|
ocrExtractText(pageIndex: number, engineHandle: any): any;
|
|
70
|
+
/**
|
|
71
|
+
* Render a page with the full Rust `RenderOptions` surface
|
|
72
|
+
* (DPI, format, RGBA background, transparency, annotation toggle,
|
|
73
|
+
* JPEG quality). Returns the image bytes.
|
|
74
|
+
*/
|
|
75
|
+
renderPageWithOptions(pageIndex: number, options?: RenderOptions): Uint8Array;
|
|
76
|
+
/**
|
|
77
|
+
* Estimate render time (milliseconds) for a page at a given DPI.
|
|
78
|
+
* Thin wrapper around the existing `estimateRenderTime` N-API
|
|
79
|
+
* export — exposed in TS for the first time as part of gap L.
|
|
80
|
+
*/
|
|
81
|
+
estimateRenderTime(pageIndex: number, dpi?: number): number;
|
|
50
82
|
page(index: number): Page;
|
|
51
83
|
[Symbol.iterator](): Iterator<Page>;
|
|
52
84
|
close(): void;
|
|
@@ -88,5 +120,7 @@ declare const ConversionOptions: any;
|
|
|
88
120
|
declare const SearchOptions: any;
|
|
89
121
|
declare const SearchResult: any;
|
|
90
122
|
declare const TextSearcher: any;
|
|
91
|
-
export {
|
|
92
|
-
export
|
|
123
|
+
export { Timestamp, TimestampHashAlgorithm } from './timestamp.js';
|
|
124
|
+
export { TsaClient, type TsaClientOptions } from './tsa-client.js';
|
|
125
|
+
export type { BatchDocument, BatchOptions, BatchProgress, BatchResult, BatchStatistics, Table, WorkerResult, WorkerTask, };
|
|
126
|
+
export { AccessibilityException, AccessibilityManager, AnnotationBuilder, AnnotationManager, AnnotationProperties, BarcodeErrorCorrection, BarcodeFormat, BarcodeManager, BatchManager, CacheManager, CertificateLoadFailed, Color, ComplianceException, ComplianceIssueType, ComplianceManager, ContentType, ConversionOptions, ConversionOptionsBuilder, createExtractionStream, createMetadataStream, createSearchStream, DigestAlgorithm, DocumentBuilder, DocumentEditor, EditingManager, EmbeddedFont, EncryptionException, EnterpriseManager, ErrorCategory, ErrorSeverity, ExtractionManager, ExtractionStream, FieldVisibility, FontProperties, FormFieldManager, FormFieldType, getPdfOxideVersion, getVersion, HybridMLManager, ImageFormat, ImageProperties, InvalidStateException, IoException, IssueSeverity, LayerManager, MetadataBuilder, MetadataManager, MetadataStream, mapFfiErrorCode, OCRDetectionMode, OCRLanguage, OCRManager, OcrException, OcrManager, OptimizationException, OptimizationManager, OutlineManager, Page, PageBuilder, PageComplexity, PageSize, ParseException, Pdf, PdfALevel, PdfBuilder, PdfDocument, PdfError, PdfException, PdfUALevel, PdfXLevel, Point, Rect, RedactionException, RenderingException, RenderingManager, ResultAccessorsManager, SearchException, SearchManager, SearchOptions, SearchOptionsBuilder, SearchResult, SearchResultProperties, SearchStream, SecurityManager, SignatureAlgorithm, SignatureException, SignatureManager, SigningFailed, TextSearcher, ThumbnailManager, ThumbnailSize, UnknownError, UnsupportedFeatureException, ValidationException, WorkerPool, workerPool, wrapAsyncMethod, wrapError, wrapMethod, XfaFieldType, XfaFormType, XfaManager, };
|