pdf-oxide-wasm 0.3.30 → 0.3.32
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/package.json +1 -1
- package/pdf_oxide.d.ts +22 -0
- package/pdf_oxide.js +24 -0
- package/pdf_oxide_bg.wasm +0 -0
- package/pdf_oxide_bg.wasm.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pdf-oxide-wasm",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.32",
|
|
4
4
|
"description": "Fast, zero-dependency PDF toolkit for Node.js, browsers, and edge runtimes — text extraction, markdown/HTML conversion, search, form filling, creation, and editing. Rust core compiled to WebAssembly.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"repository": {
|
package/pdf_oxide.d.ts
CHANGED
|
@@ -25,6 +25,28 @@ export class ArtifactStyle {
|
|
|
25
25
|
constructor();
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Chroma subsampling format
|
|
30
|
+
*/
|
|
31
|
+
export enum ChromaSampling {
|
|
32
|
+
/**
|
|
33
|
+
* Both vertically and horizontally subsampled.
|
|
34
|
+
*/
|
|
35
|
+
Cs420 = 0,
|
|
36
|
+
/**
|
|
37
|
+
* Horizontally subsampled.
|
|
38
|
+
*/
|
|
39
|
+
Cs422 = 1,
|
|
40
|
+
/**
|
|
41
|
+
* Not subsampled.
|
|
42
|
+
*/
|
|
43
|
+
Cs444 = 2,
|
|
44
|
+
/**
|
|
45
|
+
* Monochrome.
|
|
46
|
+
*/
|
|
47
|
+
Cs400 = 3,
|
|
48
|
+
}
|
|
49
|
+
|
|
28
50
|
/**
|
|
29
51
|
* A header or footer artifact definition.
|
|
30
52
|
*/
|
package/pdf_oxide.js
CHANGED
|
@@ -68,6 +68,30 @@ class ArtifactStyle {
|
|
|
68
68
|
if (Symbol.dispose) ArtifactStyle.prototype[Symbol.dispose] = ArtifactStyle.prototype.free;
|
|
69
69
|
exports.ArtifactStyle = ArtifactStyle;
|
|
70
70
|
|
|
71
|
+
/**
|
|
72
|
+
* Chroma subsampling format
|
|
73
|
+
* @enum {0 | 1 | 2 | 3}
|
|
74
|
+
*/
|
|
75
|
+
const ChromaSampling = Object.freeze({
|
|
76
|
+
/**
|
|
77
|
+
* Both vertically and horizontally subsampled.
|
|
78
|
+
*/
|
|
79
|
+
Cs420: 0, "0": "Cs420",
|
|
80
|
+
/**
|
|
81
|
+
* Horizontally subsampled.
|
|
82
|
+
*/
|
|
83
|
+
Cs422: 1, "1": "Cs422",
|
|
84
|
+
/**
|
|
85
|
+
* Not subsampled.
|
|
86
|
+
*/
|
|
87
|
+
Cs444: 2, "2": "Cs444",
|
|
88
|
+
/**
|
|
89
|
+
* Monochrome.
|
|
90
|
+
*/
|
|
91
|
+
Cs400: 3, "3": "Cs400",
|
|
92
|
+
});
|
|
93
|
+
exports.ChromaSampling = ChromaSampling;
|
|
94
|
+
|
|
71
95
|
/**
|
|
72
96
|
* A header or footer artifact definition.
|
|
73
97
|
*/
|
package/pdf_oxide_bg.wasm
CHANGED
|
Binary file
|
package/pdf_oxide_bg.wasm.d.ts
CHANGED
|
@@ -123,6 +123,8 @@ export const wasmpdfpageregion_extractText: (a: number, b: number) => void;
|
|
|
123
123
|
export const wasmpdfpageregion_extractTextLines: (a: number, b: number) => void;
|
|
124
124
|
export const wasmpdfpageregion_extractTextOcr: (a: number, b: number, c: number) => void;
|
|
125
125
|
export const wasmpdfpageregion_extractWords: (a: number, b: number) => void;
|
|
126
|
+
export const wasmocrconfig_new: () => number;
|
|
127
|
+
export const wasmpdfdocument_saveToBytes: (a: number, b: number) => void;
|
|
126
128
|
export const wasmfooter_center: (a: number, b: number) => number;
|
|
127
129
|
export const wasmfooter_left: (a: number, b: number) => number;
|
|
128
130
|
export const wasmfooter_right: (a: number, b: number) => number;
|
|
@@ -131,10 +133,8 @@ export const wasmheader_left: (a: number, b: number) => number;
|
|
|
131
133
|
export const wasmheader_right: (a: number, b: number) => number;
|
|
132
134
|
export const wasmfooter_new: () => number;
|
|
133
135
|
export const wasmheader_new: () => number;
|
|
134
|
-
export const disableLogging: () => void;
|
|
135
136
|
export const __wbg_wasmocrengine_free: (a: number, b: number) => void;
|
|
136
|
-
export const
|
|
137
|
-
export const wasmocrconfig_new: () => number;
|
|
137
|
+
export const disableLogging: () => void;
|
|
138
138
|
export const __wbg_wasmheader_free: (a: number, b: number) => void;
|
|
139
139
|
export const __wbg_wasmfooter_free: (a: number, b: number) => void;
|
|
140
140
|
export const __wbindgen_export: (a: number, b: number) => number;
|