@pdfme/cli 6.1.5 → 6.1.6
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 +1 -1
- package/dist/index.js +8 -309
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/commands/examples.d.ts +0 -35
- package/dist/example-fonts.d.ts +0 -8
- package/dist/example-templates.d.ts +0 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdfme/cli",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.6",
|
|
4
4
|
"description": "CLI tool for pdfme - generate PDFs, convert images, validate templates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"test:run": "vitest run --config ../../vitest.config.ts"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@napi-rs/canvas": "^0.
|
|
52
|
+
"@napi-rs/canvas": "^1.0.0",
|
|
53
53
|
"@pdfme/common": "*",
|
|
54
54
|
"@pdfme/converter": "*",
|
|
55
55
|
"@pdfme/generator": "*",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
declare const _default: import("citty").CommandDef<{
|
|
2
|
-
name: {
|
|
3
|
-
type: "positional";
|
|
4
|
-
description: string;
|
|
5
|
-
required: boolean;
|
|
6
|
-
};
|
|
7
|
-
list: {
|
|
8
|
-
type: "boolean";
|
|
9
|
-
description: string;
|
|
10
|
-
default: boolean;
|
|
11
|
-
};
|
|
12
|
-
output: {
|
|
13
|
-
type: "string";
|
|
14
|
-
alias: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
withInputs: {
|
|
18
|
-
type: "boolean";
|
|
19
|
-
alias: string;
|
|
20
|
-
description: string;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
verbose: {
|
|
24
|
-
type: "boolean";
|
|
25
|
-
alias: string;
|
|
26
|
-
description: string;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
json: {
|
|
30
|
-
type: "boolean";
|
|
31
|
-
description: string;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
|
-
}>;
|
|
35
|
-
export default _default;
|
package/dist/example-fonts.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Font } from '@pdfme/common';
|
|
2
|
-
export declare const OFFICIAL_EXAMPLE_FONT_URLS: {
|
|
3
|
-
readonly NotoSansJP: "https://fonts.gstatic.com/s/notosansjp/v53/-F6jfjtqLzI2JPCgQBnw7HFyzSD-AsregP8VFBEj75vY0rw-oME.ttf";
|
|
4
|
-
readonly NotoSerifJP: "https://fonts.gstatic.com/s/notoserifjp/v30/xn71YHs72GKoTvER4Gn3b5eMRtWGkp6o7MjQ2bwxOubAILO5wBCU.ttf";
|
|
5
|
-
readonly 'PinyonScript-Regular': "https://fonts.gstatic.com/s/pinyonscript/v22/6xKpdSJbL9-e9LuoeQiDRQR8aOLQO4bhiDY.ttf";
|
|
6
|
-
};
|
|
7
|
-
export declare function collectTemplateFontNames(template: Record<string, unknown>): string[];
|
|
8
|
-
export declare function getOfficialExampleFonts(template: Record<string, unknown>): Font | undefined;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export interface ExampleManifestEntry {
|
|
2
|
-
name: string;
|
|
3
|
-
author: string;
|
|
4
|
-
path: string;
|
|
5
|
-
thumbnailPath: string;
|
|
6
|
-
sourcePath?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
order?: number;
|
|
9
|
-
pageCount: number;
|
|
10
|
-
fieldCount: number;
|
|
11
|
-
schemaTypes: string[];
|
|
12
|
-
fontNames: string[];
|
|
13
|
-
hasCJK: boolean;
|
|
14
|
-
basePdfKind: string;
|
|
15
|
-
sourceKind?: string;
|
|
16
|
-
tags?: string[];
|
|
17
|
-
title?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface ExampleManifest {
|
|
20
|
-
schemaVersion: number;
|
|
21
|
-
cliVersion: string;
|
|
22
|
-
templates: ExampleManifestEntry[];
|
|
23
|
-
}
|
|
24
|
-
export interface ExampleManifestLoadResult {
|
|
25
|
-
manifest: ExampleManifest;
|
|
26
|
-
source: 'remote';
|
|
27
|
-
url?: string;
|
|
28
|
-
}
|
|
29
|
-
export interface ExampleTemplateLoadResult {
|
|
30
|
-
template: Record<string, unknown>;
|
|
31
|
-
source: 'remote';
|
|
32
|
-
url?: string;
|
|
33
|
-
}
|
|
34
|
-
export declare function getExamplesBaseUrl(): string;
|
|
35
|
-
export declare function getExampleManifest(): Promise<ExampleManifestLoadResult>;
|
|
36
|
-
export declare function getExampleTemplateNames(): Promise<string[]>;
|
|
37
|
-
export declare function fetchExampleTemplate(name: string, options?: {
|
|
38
|
-
manifest?: ExampleManifest;
|
|
39
|
-
}): Promise<Record<string, unknown>>;
|
|
40
|
-
export declare function fetchExampleTemplateWithSource(name: string, options?: {
|
|
41
|
-
manifest?: ExampleManifest;
|
|
42
|
-
}): Promise<ExampleTemplateLoadResult>;
|