@embedpdf/models 1.0.26 → 1.1.0
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/pdf.d.ts +6 -1
- package/dist/task.d.ts +2 -0
- package/package.json +1 -1
package/dist/pdf.d.ts
CHANGED
|
@@ -2140,7 +2140,7 @@ export interface PdfRenderOptions {
|
|
|
2140
2140
|
*/
|
|
2141
2141
|
imageType?: ImageConversionTypes;
|
|
2142
2142
|
/**
|
|
2143
|
-
* Image quality (0-1) for
|
|
2143
|
+
* Image quality (0-1) for jpeg and png
|
|
2144
2144
|
*/
|
|
2145
2145
|
imageQuality?: number;
|
|
2146
2146
|
}
|
|
@@ -2481,6 +2481,11 @@ export interface PdfEngine<T = Blob> {
|
|
|
2481
2481
|
* @returns task that file is closed or not
|
|
2482
2482
|
*/
|
|
2483
2483
|
closeDocument: (doc: PdfDocumentObject) => PdfTask<boolean>;
|
|
2484
|
+
/**
|
|
2485
|
+
* Close all documents
|
|
2486
|
+
* @returns task that all documents are closed or not
|
|
2487
|
+
*/
|
|
2488
|
+
closeAllDocuments: () => PdfTask<boolean>;
|
|
2484
2489
|
}
|
|
2485
2490
|
/**
|
|
2486
2491
|
* Method name of PdfEngine interface
|
package/dist/task.d.ts
CHANGED
|
@@ -82,9 +82,11 @@ export type TaskSettledResult<R, D> = {
|
|
|
82
82
|
reason: D;
|
|
83
83
|
};
|
|
84
84
|
export declare class TaskAbortedError<D> extends Error {
|
|
85
|
+
readonly reason: D;
|
|
85
86
|
constructor(reason: D);
|
|
86
87
|
}
|
|
87
88
|
export declare class TaskRejectedError<D> extends Error {
|
|
89
|
+
readonly reason: D;
|
|
88
90
|
constructor(reason: D);
|
|
89
91
|
}
|
|
90
92
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embedpdf/models",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
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",
|