unpdf 0.1.0 → 0.1.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 +8 -1
- package/dist/index.node.d.cts +12 -1
- package/dist/index.node.d.mts +12 -1
- package/dist/index.node.d.ts +12 -1
- package/dist/index.web.cjs +2 -2
- package/dist/index.web.d.cts +2 -2
- package/dist/index.web.d.mts +2 -2
- package/dist/index.web.d.ts +2 -2
- package/dist/index.web.mjs +2 -2
- package/package.json +1 -1
- package/dist/shared/unpdf.98b795c6.d.cts +0 -12
- package/dist/shared/unpdf.98b795c6.d.mts +0 -12
- package/dist/shared/unpdf.98b795c6.d.ts +0 -12
package/README.md
CHANGED
|
@@ -14,7 +14,14 @@ A collection of utilities to work with PDFs.
|
|
|
14
14
|
Run the following command to add `unpdf` to your project.
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
|
|
17
|
+
# pnpm
|
|
18
|
+
pnpm add -D unpdf
|
|
19
|
+
|
|
20
|
+
# npm
|
|
21
|
+
npm install -D unpdf
|
|
22
|
+
|
|
23
|
+
# yarn
|
|
24
|
+
yarn add -D unpdf
|
|
18
25
|
```
|
|
19
26
|
|
|
20
27
|
## Usage
|
package/dist/index.node.d.cts
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
interface PDFContent {
|
|
2
|
+
totalPages: number;
|
|
3
|
+
info?: Record<string, any>;
|
|
4
|
+
metadata?: any;
|
|
5
|
+
text: string | string[];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare function decodePDFText(data: ArrayBuffer, { mergePages }?: {
|
|
9
|
+
mergePages?: boolean;
|
|
10
|
+
}): Promise<PDFContent>;
|
|
11
|
+
|
|
12
|
+
export { decodePDFText };
|
package/dist/index.node.d.mts
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
interface PDFContent {
|
|
2
|
+
totalPages: number;
|
|
3
|
+
info?: Record<string, any>;
|
|
4
|
+
metadata?: any;
|
|
5
|
+
text: string | string[];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare function decodePDFText(data: ArrayBuffer, { mergePages }?: {
|
|
9
|
+
mergePages?: boolean;
|
|
10
|
+
}): Promise<PDFContent>;
|
|
11
|
+
|
|
12
|
+
export { decodePDFText };
|
package/dist/index.node.d.ts
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
interface PDFContent {
|
|
2
|
+
totalPages: number;
|
|
3
|
+
info?: Record<string, any>;
|
|
4
|
+
metadata?: any;
|
|
5
|
+
text: string | string[];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare function decodePDFText(data: ArrayBuffer, { mergePages }?: {
|
|
9
|
+
mergePages?: boolean;
|
|
10
|
+
}): Promise<PDFContent>;
|
|
11
|
+
|
|
12
|
+
export { decodePDFText };
|
package/dist/index.web.cjs
CHANGED
package/dist/index.web.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { decodePDFText as decodePDFText$1 } from './index.node.cjs';
|
|
2
2
|
|
|
3
|
-
declare
|
|
3
|
+
declare const decodePDFText: typeof decodePDFText$1;
|
|
4
4
|
|
|
5
5
|
export { decodePDFText };
|
package/dist/index.web.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { decodePDFText as decodePDFText$1 } from './index.node.mjs';
|
|
2
2
|
|
|
3
|
-
declare
|
|
3
|
+
declare const decodePDFText: typeof decodePDFText$1;
|
|
4
4
|
|
|
5
5
|
export { decodePDFText };
|
package/dist/index.web.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { decodePDFText as decodePDFText$1 } from './index.node.js';
|
|
2
2
|
|
|
3
|
-
declare
|
|
3
|
+
declare const decodePDFText: typeof decodePDFText$1;
|
|
4
4
|
|
|
5
5
|
export { decodePDFText };
|
package/dist/index.web.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface PDFContent {
|
|
2
|
-
totalPages: number;
|
|
3
|
-
info?: Record<string, any>;
|
|
4
|
-
metadata?: any;
|
|
5
|
-
text: string | string[];
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
declare function decodePDFText(data: ArrayBuffer, { mergePages }?: {
|
|
9
|
-
mergePages?: boolean;
|
|
10
|
-
}): Promise<PDFContent>;
|
|
11
|
-
|
|
12
|
-
export { PDFContent as P, decodePDFText as d };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface PDFContent {
|
|
2
|
-
totalPages: number;
|
|
3
|
-
info?: Record<string, any>;
|
|
4
|
-
metadata?: any;
|
|
5
|
-
text: string | string[];
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
declare function decodePDFText(data: ArrayBuffer, { mergePages }?: {
|
|
9
|
-
mergePages?: boolean;
|
|
10
|
-
}): Promise<PDFContent>;
|
|
11
|
-
|
|
12
|
-
export { PDFContent as P, decodePDFText as d };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface PDFContent {
|
|
2
|
-
totalPages: number;
|
|
3
|
-
info?: Record<string, any>;
|
|
4
|
-
metadata?: any;
|
|
5
|
-
text: string | string[];
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
declare function decodePDFText(data: ArrayBuffer, { mergePages }?: {
|
|
9
|
-
mergePages?: boolean;
|
|
10
|
-
}): Promise<PDFContent>;
|
|
11
|
-
|
|
12
|
-
export { PDFContent as P, decodePDFText as d };
|