@embedpdf/pdfium 1.0.0-alpha.0 → 1.0.0-alpha.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 +16 -2
- package/package.json +20 -3
package/README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://wwww.embedpdf.com">
|
|
3
|
+
<picture>
|
|
4
|
+
<img alt="EmbedPDF logo" src="https://www.embedpdf.com/logo-192.png" height="96">
|
|
5
|
+
</picture>
|
|
6
|
+
</a>
|
|
7
|
+
<h1>EmbedPDF</h1>
|
|
8
|
+
|
|
9
|
+
<a href="https://www.npmjs.com/package/@embedpdf/pdfium"><img alt="NPM version" src="https://img.shields.io/npm/v/@embedpdf/pdfium.svg?style=for-the-badge&labelColor=000000"></a>
|
|
10
|
+
<a href="https://github.com/embedpdf/embed-pdf-viewer/blob/main/packages/pdfium/LICENSE"><img alt="License" src="https://img.shields.io/npm/l/@embedpdf/pdfium.svg?style=for-the-badge&labelColor=000000"></a>
|
|
11
|
+
<a href="https://github.com/embedpdf/embed-pdf-viewer/discussions"><img alt="Join the community on GitHub" src="https://img.shields.io/badge/Join%20the%20community-blueviolet.svg?style=for-the-badge&labelColor=000000"></a>
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
1
15
|
# @embedpdf/pdfium
|
|
2
16
|
|
|
3
17
|
PDFium WebAssembly for the web platform. This package provides a powerful JavaScript interface to PDFium, enabling high-quality PDF rendering and manipulation directly in web applications.
|
|
@@ -42,7 +56,7 @@ bun add @embedpdf/pdfium
|
|
|
42
56
|
```javascript
|
|
43
57
|
import { init, WrappedPdfiumModule } from '@embedpdf/pdfium';
|
|
44
58
|
|
|
45
|
-
const pdfiumWasm = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium/pdfium.wasm';
|
|
59
|
+
const pdfiumWasm = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium/dist/pdfium.wasm';
|
|
46
60
|
|
|
47
61
|
let pdfiumInstance = null;
|
|
48
62
|
|
|
@@ -79,4 +93,4 @@ Check out our comprehensive documentation at [embedpdf.com/docs/pdfium](https://
|
|
|
79
93
|
|
|
80
94
|
## License
|
|
81
95
|
|
|
82
|
-
This package is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
96
|
+
This package is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
package/package.json
CHANGED
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embedpdf/pdfium",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "PDFium WebAssembly for the web platform. This package provides a powerful JavaScript interface to PDFium, enabling high-quality PDF rendering and manipulation directly in web applications.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
|
-
"module": "./dist/index.
|
|
8
|
+
"module": "./dist/index.cjs",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"import": "./dist/index.js",
|
|
14
|
-
"require": "./dist/index.
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
15
|
},
|
|
16
16
|
"./pdfium.wasm": "./dist/pdfium.wasm"
|
|
17
17
|
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/embedpdf/embed-pdf-viewer",
|
|
21
|
+
"directory": "packages/pdfium"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://www.embedpdf.com/docs/pdfium/introduction",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/embedpdf/embed-pdf-viewer/issues"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"pdf",
|
|
29
|
+
"pdfium",
|
|
30
|
+
"webassembly",
|
|
31
|
+
"wasm",
|
|
32
|
+
"render",
|
|
33
|
+
"viewer"
|
|
34
|
+
],
|
|
18
35
|
"files": [
|
|
19
36
|
"dist",
|
|
20
37
|
"README.md"
|