Skip to content

Commit 2dad535

Browse files
feat: add PDF standards supported in typst v0.14
1 parent 4a1a9cd commit 2dad535

File tree

1 file changed

+60
-3
lines changed

1 file changed

+60
-3
lines changed

packages/typst.node/index.ts

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,83 @@
22
* The well-known PDF standards.
33
*/
44
export enum PdfStandard {
5+
/**
6+
* PDF 1.4.
7+
*/
8+
V_1_4 = '1.4',
9+
/**
10+
* PDF 1.5.
11+
*/
12+
V_1_5 = '1.5',
13+
/**
14+
* PDF 1.6.
15+
*/
16+
V_1_6 = '1.6',
517
/**
618
* PDF 1.7.
719
*/
820
V_1_7 = '1.7',
21+
/**
22+
* PDF 2.0.
23+
*/
24+
V_2_0 = '2.0',
25+
/**
26+
* PDF/A-1b.
27+
*/
28+
A_1b = 'a-1b',
29+
/**
30+
* PDF/A-1a.
31+
*/
32+
A_1a = 'a-1a',
933
/**
1034
* PDF/A-2b.
1135
*/
1236
A_2b = 'a-2b',
37+
/**
38+
* PDF/A-2u.
39+
*/
40+
A_2u = 'a-2u',
41+
/**
42+
* PDF/A-2a.
43+
*/
44+
A_2a = 'a-2a',
1345
/**
1446
* PDF/A-3b.
1547
*/
1648
A_3b = 'a-3b',
49+
/**
50+
* PDF/A-3u.
51+
*/
52+
A_3u = 'a-3u',
53+
/**
54+
* PDF/A-3a.
55+
*/
56+
A_3a = 'a-3a',
57+
/**
58+
* PDF/A-4.
59+
*/
60+
A_4 = 'a-4',
61+
/**
62+
* PDF/A-4f.
63+
*/
64+
A_4f = 'a-4f',
65+
/**
66+
* PDF/A-4e.
67+
*/
68+
A_4e = 'a-4e',
69+
/**
70+
* PDF/UA-1.
71+
*/
72+
UA_1 = 'ua-1',
73+
1774
}
1875

1976
export * from './index-napi.js';
2077

2178
export type ProjectWatchItem =
2279
| string
2380
| {
24-
main: string;
25-
workspace?: string;
26-
};
81+
main: string;
82+
workspace?: string;
83+
};
2784
export type ProjectWatchItems = ProjectWatchItem | ProjectWatchItem[];

0 commit comments

Comments
 (0)