@embedpdf/models 2.0.0-next.3 → 2.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/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pdf.d.ts +2 -8
- package/package.json +3 -3
package/dist/pdf.d.ts
CHANGED
|
@@ -1441,9 +1441,9 @@ export interface PdfPathObject {
|
|
|
1441
1441
|
export interface PdfImageObject {
|
|
1442
1442
|
type: PdfPageObjectType.IMAGE;
|
|
1443
1443
|
/**
|
|
1444
|
-
* data of the image
|
|
1444
|
+
* data of the image (cross-platform compatible, works in Node.js and browsers)
|
|
1445
1445
|
*/
|
|
1446
|
-
imageData:
|
|
1446
|
+
imageData: ImageDataLike;
|
|
1447
1447
|
/**
|
|
1448
1448
|
* transform matrix
|
|
1449
1449
|
*/
|
|
@@ -2311,11 +2311,6 @@ export interface PdfEngine<T = Blob> {
|
|
|
2311
2311
|
* @returns support or not
|
|
2312
2312
|
*/
|
|
2313
2313
|
isSupport?: (feature: PdfEngineFeature) => PdfTask<PdfEngineOperation[]>;
|
|
2314
|
-
/**
|
|
2315
|
-
* Initialize the engine
|
|
2316
|
-
* @returns task that indicate whether initialization is successful
|
|
2317
|
-
*/
|
|
2318
|
-
initialize?: () => PdfTask<boolean>;
|
|
2319
2314
|
/**
|
|
2320
2315
|
* Destroy the engine
|
|
2321
2316
|
* @returns task that indicate whether destroy is successful
|
|
@@ -2633,7 +2628,6 @@ export interface BatchProgress<T> {
|
|
|
2633
2628
|
* @public
|
|
2634
2629
|
*/
|
|
2635
2630
|
export interface IPdfiumExecutor {
|
|
2636
|
-
initialize(): void;
|
|
2637
2631
|
destroy(): void;
|
|
2638
2632
|
openDocumentBuffer(file: PdfFile, options?: PdfOpenDocumentBufferOptions): PdfTask<PdfDocumentObject>;
|
|
2639
2633
|
getMetadata(doc: PdfDocumentObject): PdfTask<PdfMetadataObject>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embedpdf/models",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared type definitions, data models, and utility helpers (geometry, tasks, logging, PDF primitives) that underpin every package in the EmbedPDF ecosystem.",
|
|
6
6
|
"type": "module",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "^5.0.0",
|
|
34
|
-
"@types/jest": "^
|
|
35
|
-
"jest": "^
|
|
34
|
+
"@types/jest": "^30.0.0",
|
|
35
|
+
"jest": "^30.2.0",
|
|
36
36
|
"@embedpdf/build": "1.1.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|