@pdfme/generator 3.1.5 → 3.2.0-dev.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.
Files changed (38) hide show
  1. package/dist/cjs/__tests__/assets/templates/index.js +8 -1
  2. package/dist/cjs/__tests__/assets/templates/index.js.map +1 -1
  3. package/dist/cjs/__tests__/integration1.test.js +8 -1
  4. package/dist/cjs/__tests__/integration1.test.js.map +1 -1
  5. package/dist/cjs/__tests__/integration2.test.js +8 -1
  6. package/dist/cjs/__tests__/integration2.test.js.map +1 -1
  7. package/dist/cjs/__tests__/integration3.test.js +32 -4
  8. package/dist/cjs/__tests__/integration3.test.js.map +1 -1
  9. package/dist/cjs/__tests__/integration4.test.js +51 -0
  10. package/dist/cjs/__tests__/integration4.test.js.map +1 -0
  11. package/dist/cjs/__tests__/utils.js +2 -0
  12. package/dist/cjs/__tests__/utils.js.map +1 -1
  13. package/dist/cjs/src/generate.js +10 -7
  14. package/dist/cjs/src/generate.js.map +1 -1
  15. package/dist/cjs/src/helper.js +8 -3
  16. package/dist/cjs/src/helper.js.map +1 -1
  17. package/dist/esm/__tests__/assets/templates/index.js +7 -0
  18. package/dist/esm/__tests__/assets/templates/index.js.map +1 -1
  19. package/dist/esm/__tests__/integration1.test.js +8 -1
  20. package/dist/esm/__tests__/integration1.test.js.map +1 -1
  21. package/dist/esm/__tests__/integration2.test.js +8 -1
  22. package/dist/esm/__tests__/integration2.test.js.map +1 -1
  23. package/dist/esm/__tests__/integration3.test.js +34 -6
  24. package/dist/esm/__tests__/integration3.test.js.map +1 -1
  25. package/dist/esm/__tests__/integration4.test.js +46 -0
  26. package/dist/esm/__tests__/integration4.test.js.map +1 -0
  27. package/dist/esm/__tests__/utils.js +2 -0
  28. package/dist/esm/__tests__/utils.js.map +1 -1
  29. package/dist/esm/src/generate.js +10 -7
  30. package/dist/esm/src/generate.js.map +1 -1
  31. package/dist/esm/src/helper.js +8 -3
  32. package/dist/esm/src/helper.js.map +1 -1
  33. package/dist/types/__tests__/assets/templates/index.d.ts +134 -0
  34. package/dist/types/__tests__/integration4.test.d.ts +1 -0
  35. package/dist/types/src/helper.d.ts +2 -1
  36. package/package.json +3 -3
  37. package/src/generate.ts +13 -10
  38. package/src/helper.ts +14 -5
@@ -0,0 +1,46 @@
1
+ import { writeFileSync } from 'fs';
2
+ import generate from '../src/generate';
3
+ import { textType } from './assets/templates';
4
+ import { text, image, barcodes } from '@pdfme/schemas';
5
+ import { getFont, getPdf, getPdfTmpPath, getPdfAssertPath } from './utils';
6
+ const PERFORMANCE_THRESHOLD = parseFloat(process.env.PERFORMANCE_THRESHOLD || '2.5');
7
+ describe('generate integration test(slower)', () => {
8
+ describe.each([textType])('%s', (templateData) => {
9
+ const entries = Object.entries(templateData);
10
+ for (let l = 0; l < entries.length; l += 1) {
11
+ const [key, template] = entries[l];
12
+ // eslint-disable-next-line no-loop-func
13
+ test(`snapshot ${key}`, async () => {
14
+ const inputs = template.sampledata;
15
+ const font = getFont();
16
+ font.SauceHanSansJP.fallback = false;
17
+ font.SauceHanSerifJP.fallback = false;
18
+ font['NotoSerifJP-Regular'].fallback = false;
19
+ // @ts-ignore
20
+ font[template.fontName].fallback = true;
21
+ const hrstart = process.hrtime();
22
+ const pdf = await generate({
23
+ inputs,
24
+ template,
25
+ plugins: { text, image, ...barcodes },
26
+ options: { font },
27
+ });
28
+ const hrend = process.hrtime(hrstart);
29
+ const execSeconds = hrend[0] + hrend[1] / 1000000000;
30
+ if (process.env.CI) {
31
+ expect(execSeconds).toBeLessThan(PERFORMANCE_THRESHOLD);
32
+ }
33
+ else if (execSeconds >= PERFORMANCE_THRESHOLD) {
34
+ console.warn(`Warning: Execution time for ${key} is ${execSeconds} seconds, which is above the threshold of ${PERFORMANCE_THRESHOLD} seconds.`);
35
+ }
36
+ const tmpFile = getPdfTmpPath(`${key}.pdf`);
37
+ const assertFile = getPdfAssertPath(`${key}.pdf`);
38
+ writeFileSync(tmpFile, pdf);
39
+ const res = await Promise.all([getPdf(tmpFile), getPdf(assertFile)]);
40
+ const [a, e] = res;
41
+ expect(a.Pages).toEqual(e.Pages);
42
+ });
43
+ }
44
+ });
45
+ });
46
+ //# sourceMappingURL=integration4.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration4.test.js","sourceRoot":"","sources":["../../../__tests__/integration4.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACnC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3E,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,KAAK,CAAC,CAAC;AAErF,QAAQ,CAAC,mCAAmC,EAAE,GAAG,EAAE;IACjD,QAAQ,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,YAAY,EAAE,EAAE;QAC/C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;YAC1C,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAEnC,wCAAwC;YACxC,IAAI,CAAC,YAAY,GAAG,EAAE,EAAE,KAAK,IAAI,EAAE;gBACjC,MAAM,MAAM,GAAG,QAAQ,CAAC,UAAW,CAAC;gBAEpC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;gBACvB,IAAI,CAAC,cAAc,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CAAC,CAAC,CAAC;gBAC1E,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC;gBACnB,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACnC,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -4,6 +4,7 @@ const PDFParser = require('pdf2json');
4
4
  const SauceHanSansJPData = readFileSync(path.join(__dirname, `/assets/fonts/SauceHanSansJP.ttf`));
5
5
  const SauceHanSerifJPData = readFileSync(path.join(__dirname, `/assets/fonts/SauceHanSerifJP.ttf`));
6
6
  const NotoSerifJPRegularData = readFileSync(path.join(__dirname, `/assets/fonts/NotoSerifJP-Regular.otf`));
7
+ const NotoSansJPRegularData = readFileSync(path.join(__dirname, `/assets/fonts/NotoSansJP-Regular.otf`));
7
8
  const GloriaHallelujahRegularData = readFileSync(path.join(__dirname, `/assets/fonts/GloriaHallelujah-Regular.ttf`));
8
9
  const GreatVibesRegularData = readFileSync(path.join(__dirname, `/assets/fonts/GreatVibes-Regular.ttf`));
9
10
  const JuliusSansOneRegularData = readFileSync(path.join(__dirname, `/assets/fonts/JuliusSansOne-Regular.ttf`));
@@ -11,6 +12,7 @@ export const getFont = () => ({
11
12
  SauceHanSansJP: { fallback: true, data: SauceHanSansJPData },
12
13
  SauceHanSerifJP: { data: SauceHanSerifJPData },
13
14
  'NotoSerifJP-Regular': { data: NotoSerifJPRegularData },
15
+ 'NotoSansJP-Regular': { data: NotoSansJPRegularData },
14
16
  'GloriaHallelujah-Regular': { data: GloriaHallelujahRegularData },
15
17
  'GreatVibes-Regular': { data: GreatVibesRegularData },
16
18
  'JuliusSansOne-Regular': { data: JuliusSansOneRegularData },
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../__tests__/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,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,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,QAAgB,EAAE,EAAE,CACnD,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI,QAAQ,EAAE,CAAC,CAAC;AAEzD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC"}
@@ -4,14 +4,17 @@ import { drawEmbeddedPage, preprocessing, postProcessing } from './helper.js';
4
4
  const generate = async (props) => {
5
5
  checkGenerateProps(props);
6
6
  const { inputs, template, options = {}, plugins: userPlugins = {} } = props;
7
- const { pdfDoc, embeddedPages, embedPdfBoxes, renderObj } = await preprocessing({
8
- template,
9
- userPlugins,
10
- });
7
+ if (inputs.length === 0) {
8
+ throw new Error('inputs should not be empty');
9
+ }
10
+ const { pdfDoc, embeddedPages, embedPdfBoxes, renderObj, readOnlySchemaKeys } = await preprocessing({ template, userPlugins });
11
+ const keys = readOnlySchemaKeys.concat(Object.keys(inputs[0]));
12
+ if (template.columns) {
13
+ keys.sort((a, b) => (template.columns ?? []).indexOf(a) - (template.columns ?? []).indexOf(b));
14
+ }
11
15
  const _cache = new Map();
12
16
  for (let i = 0; i < inputs.length; i += 1) {
13
17
  const inputObj = inputs[i];
14
- const keys = Object.keys(inputObj);
15
18
  for (let j = 0; j < embeddedPages.length; j += 1) {
16
19
  const embeddedPage = embeddedPages[j];
17
20
  const { width: pageWidth, height: pageHeight } = embeddedPage;
@@ -22,14 +25,14 @@ const generate = async (props) => {
22
25
  const key = keys[l];
23
26
  const schemaObj = template.schemas[j];
24
27
  const schema = schemaObj[key];
25
- const value = inputObj[key];
26
- if (!schema || !value) {
28
+ if (!schema) {
27
29
  continue;
28
30
  }
29
31
  const render = renderObj[schema.type];
30
32
  if (!render) {
31
33
  continue;
32
34
  }
35
+ const value = schema.readOnly ? schema.readOnlyValue || '' : inputObj[key];
33
36
  await render({ key, value, schema, pdfLib, pdfDoc, page, options, _cache });
34
37
  }
35
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/generate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE9E,MAAM,QAAQ,GAAG,KAAK,EAAE,KAAoB,EAAE,EAAE;IAC9C,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC1B,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,EAAE,EAAE,OAAO,EAAE,WAAW,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAE5E,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,MAAM,aAAa,CAAC;QAC9E,QAAQ;QACR,WAAW;KACZ,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,IAAI,GAAG,EAAE,CAAC;IAEzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QACzC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QAC3B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;YAChD,MAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;YACtC,MAAM,EAAE,KAAK,EAAE,SAAS,EA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CAAC,IAAI,EAAE,CAAC;AACvB,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -34,7 +34,7 @@ export const drawEmbeddedPage = (arg) => {
34
34
  };
35
35
  export const preprocessing = async (arg) => {
36
36
  const { template, userPlugins } = arg;
37
- const { basePdf } = template;
37
+ const { basePdf, schemas } = template;
38
38
  const pdfDoc = await pdfLib.PDFDocument.create();
39
39
  // @ts-ignore
40
40
  pdfDoc.registerFontkit(fontkit);
@@ -43,7 +43,7 @@ export const preprocessing = async (arg) => {
43
43
  const pluginValues = (Object.values(userPlugins).length > 0
44
44
  ? Object.values(userPlugins)
45
45
  : Object.values(builtInPlugins));
46
- const schemaTypes = template.schemas.flatMap((schemaObj) => Object.values(schemaObj).map((schema) => schema.type));
46
+ const schemaTypes = schemas.flatMap((schemaObj) => Object.values(schemaObj).map((schema) => schema.type));
47
47
  const renderObj = schemaTypes.reduce((acc, type) => {
48
48
  const render = pluginValues.find((pv) => pv.propPanel.defaultSchema.type === type);
49
49
  if (!render) {
@@ -52,7 +52,12 @@ Check this document: https://pdfme.com/docs/custom-schemas`);
52
52
  }
53
53
  return { ...acc, [type]: render.pdf };
54
54
  }, {});
55
- return { pdfDoc, embeddedPages, embedPdfBoxes, renderObj };
55
+ const readOnlySchemaKeys = schemas.reduce((acc, schema) => {
56
+ const entries = Object.entries(schema);
57
+ const keys = entries.reduce((acc, [key, value]) => (value.readOnly ? [...acc, key] : acc), []);
58
+ return [...acc, ...keys];
59
+ }, []);
60
+ return { pdfDoc, embeddedPages, embedPdfBoxes, renderObj, readOnlySchemaKeys };
56
61
  };
57
62
  export const postProcessing = (props) => {
58
63
  const { pdfDoc, options } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAE,cAAc,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
4
  type: import("zod").ZodString;
5
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
6
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
5
7
  position: import("zod").ZodObject<{
6
8
  x: import("zod").ZodNumber;
7
9
  y: import("zod").ZodNumber;
@@ -24,6 +26,8 @@ export declare const label: {
24
26
  シンプルラベル24面: {
25
27
  schemas: Record<string, import("zod").objectOutputType<{
26
28
  type: import("zod").ZodString;
29
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
30
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
27
31
  position: import("zod").ZodObject<{
28
32
  x: import("zod").ZodNumber;
29
33
  y: import("zod").ZodNumber;
@@ -46,6 +50,8 @@ export declare const label: {
46
50
  フレームラベル24面: {
47
51
  schemas: Record<string, import("zod").objectOutputType<{
48
52
  type: import("zod").ZodString;
53
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
54
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
49
55
  position: import("zod").ZodObject<{
50
56
  x: import("zod").ZodNumber;
51
57
  y: import("zod").ZodNumber;
@@ -68,6 +74,8 @@ export declare const label: {
68
74
  ストライプラベル24面: {
69
75
  schemas: Record<string, import("zod").objectOutputType<{
70
76
  type: import("zod").ZodString;
77
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
78
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
71
79
  position: import("zod").ZodObject<{
72
80
  x: import("zod").ZodNumber;
73
81
  y: import("zod").ZodNumber;
@@ -90,6 +98,8 @@ export declare const label: {
90
98
  装飾なしラベル24面: {
91
99
  schemas: Record<string, import("zod").objectOutputType<{
92
100
  type: import("zod").ZodString;
101
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
102
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
93
103
  position: import("zod").ZodObject<{
94
104
  x: import("zod").ZodNumber;
95
105
  y: import("zod").ZodNumber;
@@ -112,6 +122,8 @@ export declare const label: {
112
122
  装飾なしラベル24面中央揃え: {
113
123
  schemas: Record<string, import("zod").objectOutputType<{
114
124
  type: import("zod").ZodString;
125
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
126
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
115
127
  position: import("zod").ZodObject<{
116
128
  x: import("zod").ZodNumber;
117
129
  y: import("zod").ZodNumber;
@@ -134,6 +146,8 @@ export declare const label: {
134
146
  郵便はがき横書き: {
135
147
  schemas: Record<string, import("zod").objectOutputType<{
136
148
  type: import("zod").ZodString;
149
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
150
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
137
151
  position: import("zod").ZodObject<{
138
152
  x: import("zod").ZodNumber;
139
153
  y: import("zod").ZodNumber;
@@ -156,6 +170,8 @@ export declare const label: {
156
170
  レターパック: {
157
171
  schemas: Record<string, import("zod").objectOutputType<{
158
172
  type: import("zod").ZodString;
173
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
174
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
159
175
  position: import("zod").ZodObject<{
160
176
  x: import("zod").ZodNumber;
161
177
  y: import("zod").ZodNumber;
@@ -178,6 +194,8 @@ export declare const label: {
178
194
  レターパックライト: {
179
195
  schemas: Record<string, import("zod").objectOutputType<{
180
196
  type: import("zod").ZodString;
197
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
198
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
181
199
  position: import("zod").ZodObject<{
182
200
  x: import("zod").ZodNumber;
183
201
  y: import("zod").ZodNumber;
@@ -200,6 +218,8 @@ export declare const label: {
200
218
  レターパックプラス: {
201
219
  schemas: Record<string, import("zod").objectOutputType<{
202
220
  type: import("zod").ZodString;
221
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
222
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
203
223
  position: import("zod").ZodObject<{
204
224
  x: import("zod").ZodNumber;
205
225
  y: import("zod").ZodNumber;
@@ -222,6 +242,8 @@ export declare const label: {
222
242
  スマートレター: {
223
243
  schemas: Record<string, import("zod").objectOutputType<{
224
244
  type: import("zod").ZodString;
245
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
246
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
225
247
  position: import("zod").ZodObject<{
226
248
  x: import("zod").ZodNumber;
227
249
  y: import("zod").ZodNumber;
@@ -244,6 +266,8 @@ export declare const label: {
244
266
  ゆうパケット: {
245
267
  schemas: Record<string, import("zod").objectOutputType<{
246
268
  type: import("zod").ZodString;
269
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
270
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
247
271
  position: import("zod").ZodObject<{
248
272
  x: import("zod").ZodNumber;
249
273
  y: import("zod").ZodNumber;
@@ -266,6 +290,8 @@ export declare const label: {
266
290
  Aone72312宛名: {
267
291
  schemas: Record<string, import("zod").objectOutputType<{
268
292
  type: import("zod").ZodString;
293
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
294
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
269
295
  position: import("zod").ZodObject<{
270
296
  x: import("zod").ZodNumber;
271
297
  y: import("zod").ZodNumber;
@@ -288,6 +314,8 @@ export declare const label: {
288
314
  名刺サイズの名札: {
289
315
  schemas: Record<string, import("zod").objectOutputType<{
290
316
  type: import("zod").ZodString;
317
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
318
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
291
319
  position: import("zod").ZodObject<{
292
320
  x: import("zod").ZodNumber;
293
321
  y: import("zod").ZodNumber;
@@ -310,6 +338,8 @@ export declare const label: {
310
338
  connpass名札: {
311
339
  schemas: Record<string, import("zod").objectOutputType<{
312
340
  type: import("zod").ZodString;
341
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
342
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
313
343
  position: import("zod").ZodObject<{
314
344
  x: import("zod").ZodNumber;
315
345
  y: import("zod").ZodNumber;
@@ -334,6 +364,8 @@ export declare const envelope: {
334
364
  長形3号封筒: {
335
365
  schemas: Record<string, import("zod").objectOutputType<{
336
366
  type: import("zod").ZodString;
367
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
368
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
337
369
  position: import("zod").ZodObject<{
338
370
  x: import("zod").ZodNumber;
339
371
  y: import("zod").ZodNumber;
@@ -356,6 +388,8 @@ export declare const envelope: {
356
388
  洋長3号封筒: {
357
389
  schemas: Record<string, import("zod").objectOutputType<{
358
390
  type: import("zod").ZodString;
391
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
392
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
359
393
  position: import("zod").ZodObject<{
360
394
  x: import("zod").ZodNumber;
361
395
  y: import("zod").ZodNumber;
@@ -378,6 +412,8 @@ export declare const envelope: {
378
412
  角形2号封筒: {
379
413
  schemas: Record<string, import("zod").objectOutputType<{
380
414
  type: import("zod").ZodString;
415
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
416
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
381
417
  position: import("zod").ZodObject<{
382
418
  x: import("zod").ZodNumber;
383
419
  y: import("zod").ZodNumber;
@@ -402,6 +438,8 @@ export declare const barcode: {
402
438
  Aone31555QRコード: {
403
439
  schemas: Record<string, import("zod").objectOutputType<{
404
440
  type: import("zod").ZodString;
441
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
442
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
405
443
  position: import("zod").ZodObject<{
406
444
  x: import("zod").ZodNumber;
407
445
  y: import("zod").ZodNumber;
@@ -424,6 +462,8 @@ export declare const barcode: {
424
462
  Aone31553QRコード: {
425
463
  schemas: Record<string, import("zod").objectOutputType<{
426
464
  type: import("zod").ZodString;
465
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
466
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
427
467
  position: import("zod").ZodObject<{
428
468
  x: import("zod").ZodNumber;
429
469
  y: import("zod").ZodNumber;
@@ -446,6 +486,8 @@ export declare const barcode: {
446
486
  Aone72230JANコード短縮: {
447
487
  schemas: Record<string, import("zod").objectOutputType<{
448
488
  type: import("zod").ZodString;
489
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
490
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
449
491
  position: import("zod").ZodObject<{
450
492
  x: import("zod").ZodNumber;
451
493
  y: import("zod").ZodNumber;
@@ -468,6 +510,8 @@ export declare const barcode: {
468
510
  Aone72230JANコード標準: {
469
511
  schemas: Record<string, import("zod").objectOutputType<{
470
512
  type: import("zod").ZodString;
513
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
514
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
471
515
  position: import("zod").ZodObject<{
472
516
  x: import("zod").ZodNumber;
473
517
  y: import("zod").ZodNumber;
@@ -490,6 +534,8 @@ export declare const barcode: {
490
534
  barcodes: {
491
535
  schemas: Record<string, import("zod").objectOutputType<{
492
536
  type: import("zod").ZodString;
537
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
538
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
493
539
  position: import("zod").ZodObject<{
494
540
  x: import("zod").ZodNumber;
495
541
  y: import("zod").ZodNumber;
@@ -514,6 +560,8 @@ export declare const business: {
514
560
  領収書: {
515
561
  schemas: Record<string, import("zod").objectOutputType<{
516
562
  type: import("zod").ZodString;
563
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
564
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
517
565
  position: import("zod").ZodObject<{
518
566
  x: import("zod").ZodNumber;
519
567
  y: import("zod").ZodNumber;
@@ -536,6 +584,8 @@ export declare const business: {
536
584
  領収書x4: {
537
585
  schemas: Record<string, import("zod").objectOutputType<{
538
586
  type: import("zod").ZodString;
587
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
588
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
539
589
  position: import("zod").ZodObject<{
540
590
  x: import("zod").ZodNumber;
541
591
  y: import("zod").ZodNumber;
@@ -558,6 +608,8 @@ export declare const business: {
558
608
  表彰状: {
559
609
  schemas: Record<string, import("zod").objectOutputType<{
560
610
  type: import("zod").ZodString;
611
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
612
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
561
613
  position: import("zod").ZodObject<{
562
614
  x: import("zod").ZodNumber;
563
615
  y: import("zod").ZodNumber;
@@ -580,6 +632,8 @@ export declare const business: {
580
632
  見積書: {
581
633
  schemas: Record<string, import("zod").objectOutputType<{
582
634
  type: import("zod").ZodString;
635
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
636
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
583
637
  position: import("zod").ZodObject<{
584
638
  x: import("zod").ZodNumber;
585
639
  y: import("zod").ZodNumber;
@@ -602,6 +656,8 @@ export declare const business: {
602
656
  請求書: {
603
657
  schemas: Record<string, import("zod").objectOutputType<{
604
658
  type: import("zod").ZodString;
659
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
660
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
605
661
  position: import("zod").ZodObject<{
606
662
  x: import("zod").ZodNumber;
607
663
  y: import("zod").ZodNumber;
@@ -624,6 +680,8 @@ export declare const business: {
624
680
  納品書: {
625
681
  schemas: Record<string, import("zod").objectOutputType<{
626
682
  type: import("zod").ZodString;
683
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
684
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
627
685
  position: import("zod").ZodObject<{
628
686
  x: import("zod").ZodNumber;
629
687
  y: import("zod").ZodNumber;
@@ -646,6 +704,8 @@ export declare const business: {
646
704
  書類送付状: {
647
705
  schemas: Record<string, import("zod").objectOutputType<{
648
706
  type: import("zod").ZodString;
707
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
708
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
649
709
  position: import("zod").ZodObject<{
650
710
  x: import("zod").ZodNumber;
651
711
  y: import("zod").ZodNumber;
@@ -668,6 +728,8 @@ export declare const business: {
668
728
  履歴書: {
669
729
  schemas: Record<string, import("zod").objectOutputType<{
670
730
  type: import("zod").ZodString;
731
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
732
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
671
733
  position: import("zod").ZodObject<{
672
734
  x: import("zod").ZodNumber;
673
735
  y: import("zod").ZodNumber;
@@ -690,6 +752,8 @@ export declare const business: {
690
752
  労働条件通知書: {
691
753
  schemas: Record<string, import("zod").objectOutputType<{
692
754
  type: import("zod").ZodString;
755
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
756
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
693
757
  position: import("zod").ZodObject<{
694
758
  x: import("zod").ZodNumber;
695
759
  y: import("zod").ZodNumber;
@@ -714,6 +778,8 @@ export declare const textType: {
714
778
  dynamicFontSizeHorizontal: {
715
779
  schemas: Record<string, import("zod").objectOutputType<{
716
780
  type: import("zod").ZodString;
781
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
782
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
717
783
  position: import("zod").ZodObject<{
718
784
  x: import("zod").ZodNumber;
719
785
  y: import("zod").ZodNumber;
@@ -736,6 +802,8 @@ export declare const textType: {
736
802
  dynamicFontSizeVertical: {
737
803
  schemas: Record<string, import("zod").objectOutputType<{
738
804
  type: import("zod").ZodString;
805
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
806
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
739
807
  position: import("zod").ZodObject<{
740
808
  x: import("zod").ZodNumber;
741
809
  y: import("zod").ZodNumber;
@@ -758,6 +826,8 @@ export declare const textType: {
758
826
  verticalAlignmentTop: {
759
827
  schemas: Record<string, import("zod").objectOutputType<{
760
828
  type: import("zod").ZodString;
829
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
830
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
761
831
  position: import("zod").ZodObject<{
762
832
  x: import("zod").ZodNumber;
763
833
  y: import("zod").ZodNumber;
@@ -780,6 +850,8 @@ export declare const textType: {
780
850
  verticalAlignmentMiddle: {
781
851
  schemas: Record<string, import("zod").objectOutputType<{
782
852
  type: import("zod").ZodString;
853
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
854
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
783
855
  position: import("zod").ZodObject<{
784
856
  x: import("zod").ZodNumber;
785
857
  y: import("zod").ZodNumber;
@@ -802,6 +874,8 @@ export declare const textType: {
802
874
  verticalAlignmentBottom: {
803
875
  schemas: Record<string, import("zod").objectOutputType<{
804
876
  type: import("zod").ZodString;
877
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
878
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
805
879
  position: import("zod").ZodObject<{
806
880
  x: import("zod").ZodNumber;
807
881
  y: import("zod").ZodNumber;
@@ -826,6 +900,8 @@ export declare const other: {
826
900
  test: {
827
901
  schemas: Record<string, import("zod").objectOutputType<{
828
902
  type: import("zod").ZodString;
903
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
904
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
829
905
  position: import("zod").ZodObject<{
830
906
  x: import("zod").ZodNumber;
831
907
  y: import("zod").ZodNumber;
@@ -848,6 +924,8 @@ export declare const other: {
848
924
  z97mmx210mm: {
849
925
  schemas: Record<string, import("zod").objectOutputType<{
850
926
  type: import("zod").ZodString;
927
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
928
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
851
929
  position: import("zod").ZodObject<{
852
930
  x: import("zod").ZodNumber;
853
931
  y: import("zod").ZodNumber;
@@ -870,6 +948,8 @@ export declare const other: {
870
948
  canvasPdf: {
871
949
  schemas: Record<string, import("zod").objectOutputType<{
872
950
  type: import("zod").ZodString;
951
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
952
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
873
953
  position: import("zod").ZodObject<{
874
954
  x: import("zod").ZodNumber;
875
955
  y: import("zod").ZodNumber;
@@ -892,6 +972,8 @@ export declare const other: {
892
972
  background: {
893
973
  schemas: Record<string, import("zod").objectOutputType<{
894
974
  type: import("zod").ZodString;
975
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
976
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
895
977
  position: import("zod").ZodObject<{
896
978
  x: import("zod").ZodNumber;
897
979
  y: import("zod").ZodNumber;
@@ -914,6 +996,58 @@ export declare const other: {
914
996
  rotation: {
915
997
  schemas: Record<string, import("zod").objectOutputType<{
916
998
  type: import("zod").ZodString;
999
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
1000
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
1001
+ position: import("zod").ZodObject<{
1002
+ x: import("zod").ZodNumber;
1003
+ y: import("zod").ZodNumber;
1004
+ }, "strip", import("zod").ZodTypeAny, {
1005
+ x: number;
1006
+ y: number;
1007
+ }, {
1008
+ x: number;
1009
+ y: number;
1010
+ }>;
1011
+ width: import("zod").ZodNumber;
1012
+ height: import("zod").ZodNumber;
1013
+ rotate: import("zod").ZodOptional<import("zod").ZodNumber>;
1014
+ opacity: import("zod").ZodOptional<import("zod").ZodNumber>;
1015
+ }, import("zod").ZodTypeAny, "passthrough">>[];
1016
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1017
+ sampledata?: Record<string, string>[] | undefined;
1018
+ columns?: string[] | undefined;
1019
+ };
1020
+ pet: {
1021
+ schemas: Record<string, import("zod").objectOutputType<{
1022
+ type: import("zod").ZodString;
1023
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
1024
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
1025
+ position: import("zod").ZodObject<{
1026
+ x: import("zod").ZodNumber;
1027
+ y: import("zod").ZodNumber;
1028
+ }, "strip", import("zod").ZodTypeAny, {
1029
+ x: number;
1030
+ y: number;
1031
+ }, {
1032
+ x: number;
1033
+ y: number;
1034
+ }>;
1035
+ width: import("zod").ZodNumber;
1036
+ height: import("zod").ZodNumber;
1037
+ rotate: import("zod").ZodOptional<import("zod").ZodNumber>;
1038
+ opacity: import("zod").ZodOptional<import("zod").ZodNumber>;
1039
+ }, import("zod").ZodTypeAny, "passthrough">>[];
1040
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1041
+ sampledata?: Record<string, string>[] | undefined;
1042
+ columns?: string[] | undefined;
1043
+ };
1044
+ };
1045
+ export declare const shape: {
1046
+ shapes: {
1047
+ schemas: Record<string, import("zod").objectOutputType<{
1048
+ type: import("zod").ZodString;
1049
+ readOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
1050
+ readOnlyValue: import("zod").ZodOptional<import("zod").ZodString>;
917
1051
  position: import("zod").ZodObject<{
918
1052
  x: import("zod").ZodNumber;
919
1053
  y: import("zod").ZodNumber;
@@ -0,0 +1 @@
1
+ export {};
@@ -23,7 +23,8 @@ export declare const preprocessing: (arg: {
23
23
  pdfDoc: pdfLib.PDFDocument;
24
24
  embeddedPages: pdfLib.PDFEmbeddedPage[];
25
25
  embedPdfBoxes: EmbedPdfBox[];
26
- renderObj: Record<string, (arg: PDFRenderProps<Schema>) => Promise<void>>;
26
+ renderObj: Record<string, (arg: PDFRenderProps<Schema>) => Promise<void> | void>;
27
+ readOnlySchemaKeys: string[];
27
28
  }>;
28
29
  export declare const postProcessing: (props: {
29
30
  pdfDoc: pdfLib.PDFDocument;