@pdfme/schemas 4.1.0-dev.1 → 4.1.0-dev.3
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.
@@ -191,7 +191,7 @@ function parseInput(schema, body) {
|
|
191
191
|
function createSingleTable(body, args) {
|
192
192
|
const { options, _cache, basePdf } = args;
|
193
193
|
if (!(0, common_1.isBlankPdf)(basePdf))
|
194
|
-
throw new Error('[@pdfme/schema/table]
|
194
|
+
throw new Error('[@pdfme/schema/table] Custom PDF is not supported');
|
195
195
|
const input = parseInput(args.schema, body);
|
196
196
|
const font = options.font || (0, common_1.getDefaultFont)();
|
197
197
|
const fallbackFontName = (0, common_1.getFallbackFontName)(font);
|
@@ -202,7 +202,7 @@ exports.createSingleTable = createSingleTable;
|
|
202
202
|
async function createMultiTables(body, args) {
|
203
203
|
const { basePdf, schema } = args;
|
204
204
|
if (!(0, common_1.isBlankPdf)(basePdf))
|
205
|
-
throw new Error('[@pdfme/schema/table]
|
205
|
+
throw new Error('[@pdfme/schema/table] Custom PDF is not supported');
|
206
206
|
const pageHeight = basePdf.height;
|
207
207
|
const paddingBottom = basePdf.padding[2];
|
208
208
|
const paddingTop = basePdf.padding[0];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tableHelper.js","sourceRoot":"","sources":["../../../../src/tables/tableHelper.ts"],"names":[],"mappings":";;;AAAA,0CAOuB;AAUvB,oCAAqC;AACrC,uCAAqD;AA8BrD,SAAS,YAAY,CACnB,WAAoB,EACpB,WAAuB,EACvB,OAAiB,EACjB,UAAuB,EACvB,gBAAwB;IAExB,MAAM,qBAAqB,GAAuD,EAAE,CAAC;IACrF,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE;QAClD,IAAI,qBAAqB,GAAG,CAAC,CAAC;QAC9B,MAAM,KAAK,GAA4B,EAAE,CAAC;QAE1C,IAAI,aAAa,GAAG,CAAC,CAAC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AAC,GAAG,UAAU,CAAC;YAChC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;YAEtB,eAAe,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,CAAC;SAC3D;KACF;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AApCD,8CAoCC"}
|
@@ -188,7 +188,7 @@ function parseInput(schema, body) {
|
|
188
188
|
export function createSingleTable(body, args) {
|
189
189
|
const { options, _cache, basePdf } = args;
|
190
190
|
if (!isBlankPdf(basePdf))
|
191
|
-
throw new Error('[@pdfme/schema/table]
|
191
|
+
throw new Error('[@pdfme/schema/table] Custom PDF is not supported');
|
192
192
|
const input = parseInput(args.schema, body);
|
193
193
|
const font = options.font || getDefaultFont();
|
194
194
|
const fallbackFontName = getFallbackFontName(font);
|
@@ -198,7 +198,7 @@ export function createSingleTable(body, args) {
|
|
198
198
|
export async function createMultiTables(body, args) {
|
199
199
|
const { basePdf, schema } = args;
|
200
200
|
if (!isBlankPdf(basePdf))
|
201
|
-
throw new Error('[@pdfme/schema/table]
|
201
|
+
throw new Error('[@pdfme/schema/table] Custom PDF is not supported');
|
202
202
|
const pageHeight = basePdf.height;
|
203
203
|
const paddingBottom = basePdf.padding[2];
|
204
204
|
const paddingTop = basePdf.padding[0];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tableHelper.js","sourceRoot":"","sources":["../../../../src/tables/tableHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAGV,cAAc,EACd,mBAAmB,GACpB,MAAM,eAAe,CAAC;AAUvB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AA8BrD,SAAS,YAAY,CACnB,WAAoB,EACpB,WAAuB,EACvB,OAAiB,EACjB,UAAuB,EACvB,gBAAwB;IAExB,MAAM,qBAAqB,GAAuD,EAAE,CAAC;IACrF,MAAM,MAA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AM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEnB,aAAa,GAAG,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEvD,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE;YAC5B,MAAM,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;YAClC,OAAO,CAAC,QAAQ,GAAG,KAAK,CAAC;YACzB,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,UAAU,CAAC;YAChC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;YAEtB,eAAe,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,CAAC;SAC3D;KACF;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
@@ -270,7 +270,7 @@ function parseInput(schema: TableSchema, body: string[][]): TableInput {
|
|
270
270
|
|
271
271
|
export function createSingleTable(body: string[][], args: CreateTableArgs) {
|
272
272
|
const { options, _cache, basePdf } = args;
|
273
|
-
if (!isBlankPdf(basePdf)) throw new Error('[@pdfme/schema/table]
|
273
|
+
if (!isBlankPdf(basePdf)) throw new Error('[@pdfme/schema/table] Custom PDF is not supported');
|
274
274
|
|
275
275
|
const input = parseInput(args.schema as TableSchema, body);
|
276
276
|
|
@@ -286,7 +286,7 @@ export function createSingleTable(body: string[][], args: CreateTableArgs) {
|
|
286
286
|
export async function createMultiTables(body: string[][], args: CreateTableArgs): Promise<Table[]> {
|
287
287
|
const { basePdf, schema } = args;
|
288
288
|
|
289
|
-
if (!isBlankPdf(basePdf)) throw new Error('[@pdfme/schema/table]
|
289
|
+
if (!isBlankPdf(basePdf)) throw new Error('[@pdfme/schema/table] Custom PDF is not supported');
|
290
290
|
const pageHeight = basePdf.height;
|
291
291
|
const paddingBottom = basePdf.padding[2];
|
292
292
|
const paddingTop = basePdf.padding[0];
|