@pdfme/generator
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -18,4 +18,3 @@ "use strict"; | ||
const common_1 = require("@pdfme/common"); | ||
const index_js_1 = require("./helper/index.js"); | ||
const draw_js_1 = require("./helper/draw.js"); | ||
const helper_js_1 = require("./helper.js"); | ||
const constants_js_1 = require("./constants.js"); | ||
@@ -28,4 +27,4 @@ const preprocessing = (arg) => __awaiter(void 0, void 0, void 0, function* () { | ||
const fallbackFontName = (0, common_1.getFallbackFontName)(font); | ||
const fontObj = yield (0, index_js_1.embedAndGetFontObj)({ pdfDoc, font }); | ||
const pagesAndBoxes = yield (0, index_js_1.getEmbeddedPagesAndEmbedPdfBoxes)({ pdfDoc, basePdf }); | ||
const fontObj = yield (0, helper_js_1.embedAndGetFontObj)({ pdfDoc, font }); | ||
const pagesAndBoxes = yield (0, helper_js_1.getEmbeddedPagesAndEmbedPdfBoxes)({ pdfDoc, basePdf }); | ||
const { embeddedPages, embedPdfBoxes } = pagesAndBoxes; | ||
@@ -54,3 +53,3 @@ return { pdfDoc, fontObj, fallbackFontName, embeddedPages, embedPdfBoxes }; | ||
const page = pdfDoc.addPage([pageWidth, pageHeight]); | ||
(0, draw_js_1.drawEmbeddedPage)({ page, embeddedPage, embedPdfBox }); | ||
(0, helper_js_1.drawEmbeddedPage)({ page, embeddedPage, embedPdfBox }); | ||
for (let l = 0; l < keys.length; l += 1) { | ||
@@ -63,3 +62,3 @@ const key = keys[l]; | ||
// eslint-disable-next-line no-await-in-loop | ||
yield (0, draw_js_1.drawInputByTemplateSchema)({ | ||
yield (0, helper_js_1.drawInputByTemplateSchema)({ | ||
input, | ||
@@ -66,0 +65,0 @@ templateSchema, |
@@ -13,4 +13,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { getDefaultFont, getFallbackFontName, checkGenerateProps } from '@pdfme/common'; | ||
import { getEmbeddedPagesAndEmbedPdfBoxes, embedAndGetFontObj } from './helper/index.js'; | ||
import { drawInputByTemplateSchema, drawEmbeddedPage } from './helper/draw.js'; | ||
import { getEmbeddedPagesAndEmbedPdfBoxes, drawInputByTemplateSchema, drawEmbeddedPage, embedAndGetFontObj, } from './helper.js'; | ||
import { TOOL_NAME } from './constants.js'; | ||
@@ -17,0 +16,0 @@ const preprocessing = (arg) => __awaiter(void 0, void 0, void 0, function* () { |
{ | ||
"name": "@pdfme/generator", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"sideEffects": false, | ||
@@ -37,3 +37,3 @@ "author": "hand-dot", | ||
"scripts": { | ||
"develop": "tsc -w -p tsconfig.esm.json", | ||
"develop": "tsc -w", | ||
"build": "npm run build:cjs && npm run build:esm", | ||
@@ -40,0 +40,0 @@ "build:cjs": "tsc -p tsconfig.cjs.json", |
@@ -5,6 +5,10 @@ import { PDFDocument } from 'pdf-lib'; | ||
import { getDefaultFont, getFallbackFontName, checkGenerateProps } from '@pdfme/common'; | ||
import { getEmbeddedPagesAndEmbedPdfBoxes, embedAndGetFontObj } from './helper/index.js'; | ||
import { drawInputByTemplateSchema, drawEmbeddedPage } from './helper/draw.js'; | ||
import { | ||
getEmbeddedPagesAndEmbedPdfBoxes, | ||
drawInputByTemplateSchema, | ||
drawEmbeddedPage, | ||
embedAndGetFontObj, | ||
InputImageCache, | ||
} from './helper.js'; | ||
import { TOOL_NAME } from './constants.js'; | ||
import type { InputImageCache } from './type'; | ||
@@ -11,0 +15,0 @@ const preprocessing = async (arg: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3982
224979
44