@campxdev/pdfme 1.2.0 → 1.2.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.
- package/dist/cjs/chunks/{helper-DU7Bm8ZQ.js → helper-C2o2tpNj.js} +2 -1
- package/dist/cjs/chunks/{index-Co0Y0KJj.js → index-CXm3doOM.js} +31 -4
- package/dist/cjs/chunks/{index-mgS9yYj7.js → index-dHRmLCnu.js} +4 -4
- package/dist/cjs/chunks/{index-BzWo8eqh.js → index-qB7eb2BC.js} +2 -2
- package/dist/cjs/chunks/{pluginRegistry-DlJQZP6L.js → pluginRegistry-Ba3ANzzx.js} +1 -1
- package/dist/cjs/common.js +3 -3
- package/dist/cjs/converter.js +1 -1
- package/dist/cjs/generator.js +3 -3
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/print-designer-editor.js +223 -128
- package/dist/cjs/schemas.js +3 -3
- package/dist/cjs/ui.js +106 -83
- package/dist/esm/chunks/{helper-C8LqGaF4.js → helper-D7XF1bxK.js} +2 -1
- package/dist/esm/chunks/{index-d0iAk7OA.js → index-D1FuD_XZ.js} +3 -3
- package/dist/esm/chunks/{index-Rwcd_Vzj.js → index-pDt5vVVj.js} +4 -4
- package/dist/esm/chunks/{index-CwqHuiCe.js → index-qTsnfbi7.js} +32 -5
- package/dist/esm/chunks/{pluginRegistry-C0a91XEw.js → pluginRegistry-DEA2P0ud.js} +1 -1
- package/dist/esm/common.js +3 -3
- package/dist/esm/converter.js +1 -1
- package/dist/esm/generator.js +3 -3
- package/dist/esm/index.js +5 -5
- package/dist/esm/print-designer-editor.js +224 -129
- package/dist/esm/schemas.js +5 -5
- package/dist/esm/ui.js +106 -83
- package/dist/types/_vendors/schemas/text/extraFormatter.d.ts +2 -0
- package/dist/types/_vendors/schemas/text/helper.d.ts +1 -0
- package/dist/types/_vendors/schemas/text/icons/index.d.ts +2 -0
- package/dist/types/_vendors/schemas/text/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { q as getFallbackFontName, p as getDefaultFont, D as DEFAULT_FONT_NAME, c as b64toUint8Array, w as pt2px, v as pt2mm, u as mm2pt, s as isBlankPdf, l as cloneDeep, t as isHexValid } from './helper-
|
|
1
|
+
import { q as getFallbackFontName, p as getDefaultFont, D as DEFAULT_FONT_NAME, c as b64toUint8Array, w as pt2px, v as pt2mm, u as mm2pt, s as isBlankPdf, l as cloneDeep, t as isHexValid } from './helper-D7XF1bxK.js';
|
|
2
2
|
import * as fontkit from 'fontkit';
|
|
3
3
|
import { Buffer } from 'buffer';
|
|
4
4
|
import { d as degrees, c as cmyk, r as rgb, a as degreesToRadians } from './colors-jzbEzNi4.js';
|
|
5
5
|
import { r as replacePlaceholders } from './expression-B-F1KCfk.js';
|
|
6
|
-
import { Strikethrough, Underline, AlignLeft, AlignCenter, AlignRight, AlignJustify, ArrowUpToLine, ArrowDownToLine, Type } from 'lucide';
|
|
6
|
+
import { Bold, Italic, Strikethrough, Underline, AlignLeft, AlignCenter, AlignRight, AlignJustify, ArrowUpToLine, ArrowDownToLine, Type } from 'lucide';
|
|
7
7
|
|
|
8
8
|
const DEFAULT_FONT_SIZE = 13;
|
|
9
9
|
const ALIGN_LEFT = 'left';
|
|
@@ -182,6 +182,21 @@ const getFontKitFont = async (fontName, font, _cache) => {
|
|
|
182
182
|
_cache.set(cacheKey, fontKitFont);
|
|
183
183
|
return fontKitFont;
|
|
184
184
|
};
|
|
185
|
+
const resolveFontName = (fontName, bold, italic, font) => {
|
|
186
|
+
const base = fontName || getFallbackFontName(font);
|
|
187
|
+
if (!bold && !italic)
|
|
188
|
+
return base;
|
|
189
|
+
const suffixes = bold && italic
|
|
190
|
+
? [' Bold Italic', 'BoldItalic', '-BoldItalic']
|
|
191
|
+
: bold
|
|
192
|
+
? [' Bold', 'Bold', '-Bold']
|
|
193
|
+
: [' Italic', 'Italic', '-Italic'];
|
|
194
|
+
for (const suffix of suffixes) {
|
|
195
|
+
if (font[base + suffix])
|
|
196
|
+
return base + suffix;
|
|
197
|
+
}
|
|
198
|
+
return base;
|
|
199
|
+
};
|
|
185
200
|
/**
|
|
186
201
|
* If using dynamic font size, iteratively increment or decrement the
|
|
187
202
|
* font size to fit the containing box.
|
|
@@ -1618,17 +1633,18 @@ const pdfRender$1 = async (arg) => {
|
|
|
1618
1633
|
if (!value)
|
|
1619
1634
|
return;
|
|
1620
1635
|
const { font = getDefaultFont(), colorType } = options;
|
|
1636
|
+
const resolvedFontName = resolveFontName(schema.fontName, schema.bold, schema.italic, font);
|
|
1621
1637
|
const [pdfFontObj, fontKitFont] = await Promise.all([
|
|
1622
1638
|
embedAndGetFontObj({
|
|
1623
1639
|
pdfDoc,
|
|
1624
1640
|
font,
|
|
1625
1641
|
_cache: _cache,
|
|
1626
1642
|
}),
|
|
1627
|
-
getFontKitFont(
|
|
1643
|
+
getFontKitFont(resolvedFontName, font, _cache),
|
|
1628
1644
|
]);
|
|
1629
1645
|
const fontProp = getFontProp({ value, fontKitFont, schema, colorType });
|
|
1630
1646
|
const { fontSize, color, alignment, verticalAlignment, lineHeight, characterSpacing } = fontProp;
|
|
1631
|
-
const fontName =
|
|
1647
|
+
const fontName = resolvedFontName;
|
|
1632
1648
|
const pdfFontValue = pdfFontObj && pdfFontObj[fontName];
|
|
1633
1649
|
const pageHeight = page.getHeight();
|
|
1634
1650
|
const { width, height, rotate, position: { x, y }, opacity, } = convertForPdfLayoutProps({ schema, pageHeight, applyRotateTranslate: false });
|
|
@@ -1808,6 +1824,8 @@ const pdfRender = async (arg) => {
|
|
|
1808
1824
|
await pdfRender$1(renderArgs);
|
|
1809
1825
|
};
|
|
1810
1826
|
|
|
1827
|
+
const TextBoldIcon = createSvgStr(Bold);
|
|
1828
|
+
const TextItalicIcon = createSvgStr(Italic);
|
|
1811
1829
|
const TextStrikethroughIcon = createSvgStr(Strikethrough);
|
|
1812
1830
|
const TextUnderlineIcon = createSvgStr(Underline);
|
|
1813
1831
|
const TextAlignLeftIcon = createSvgStr(AlignLeft);
|
|
@@ -1822,6 +1840,8 @@ const TextVerticalAlignBottomIcon = createSvgStr(ArrowDownToLine);
|
|
|
1822
1840
|
// No imports needed from @campxdev/common
|
|
1823
1841
|
var Formatter;
|
|
1824
1842
|
(function (Formatter) {
|
|
1843
|
+
Formatter["BOLD"] = "bold";
|
|
1844
|
+
Formatter["ITALIC"] = "italic";
|
|
1825
1845
|
Formatter["STRIKETHROUGH"] = "strikethrough";
|
|
1826
1846
|
Formatter["UNDERLINE"] = "underline";
|
|
1827
1847
|
Formatter["ALIGNMENT"] = "alignment";
|
|
@@ -1829,6 +1849,8 @@ var Formatter;
|
|
|
1829
1849
|
})(Formatter || (Formatter = {}));
|
|
1830
1850
|
function getExtraFormatterSchema(i18n) {
|
|
1831
1851
|
const buttons = [
|
|
1852
|
+
{ key: Formatter.BOLD, icon: TextBoldIcon, type: 'boolean' },
|
|
1853
|
+
{ key: Formatter.ITALIC, icon: TextItalicIcon, type: 'boolean' },
|
|
1832
1854
|
{ key: Formatter.STRIKETHROUGH, icon: TextStrikethroughIcon, type: 'boolean' },
|
|
1833
1855
|
{ key: Formatter.UNDERLINE, icon: TextUnderlineIcon, type: 'boolean' },
|
|
1834
1856
|
{ key: Formatter.ALIGNMENT, icon: TextAlignLeftIcon, type: 'select', value: DEFAULT_ALIGNMENT },
|
|
@@ -2011,6 +2033,8 @@ const propPanel$1 = {
|
|
|
2011
2033
|
fontName: undefined,
|
|
2012
2034
|
backgroundColor: '',
|
|
2013
2035
|
opacity: DEFAULT_OPACITY,
|
|
2036
|
+
bold: false,
|
|
2037
|
+
italic: false,
|
|
2014
2038
|
strikethrough: false,
|
|
2015
2039
|
underline: false,
|
|
2016
2040
|
},
|
|
@@ -2301,7 +2325,8 @@ const uiRender$1 = async (arg) => {
|
|
|
2301
2325
|
return text;
|
|
2302
2326
|
};
|
|
2303
2327
|
const font = options?.font || getDefaultFont();
|
|
2304
|
-
const
|
|
2328
|
+
const resolvedFontName = resolveFontName(schema.fontName, schema.bold, schema.italic, font);
|
|
2329
|
+
const fontKitFont = await getFontKitFont(resolvedFontName, font, _cache);
|
|
2305
2330
|
const textBlock = buildStyledTextContainer(arg, fontKitFont, usePlaceholder ? placeholder : value);
|
|
2306
2331
|
const processedText = replaceUnsupportedChars(value, fontKitFont);
|
|
2307
2332
|
if (!isEditable(mode, schema)) {
|
|
@@ -2408,6 +2433,8 @@ const buildStyledTextContainer = (arg, fontKitFont, value) => {
|
|
|
2408
2433
|
const textBlockStyle = {
|
|
2409
2434
|
// Font formatting styles
|
|
2410
2435
|
fontFamily: schema.fontName ? `'${schema.fontName}'` : 'inherit',
|
|
2436
|
+
fontWeight: schema.bold ? 'bold' : 'normal',
|
|
2437
|
+
fontStyle: schema.italic ? 'italic' : 'normal',
|
|
2411
2438
|
color: schema.fontColor ? schema.fontColor : DEFAULT_FONT_COLOR,
|
|
2412
2439
|
fontSize: `${dynamicFontSize ?? schema.fontSize ?? DEFAULT_FONT_SIZE}pt`,
|
|
2413
2440
|
letterSpacing: `${schema.characterSpacing ?? DEFAULT_CHARACTER_SPACING}pt`,
|
package/dist/esm/common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as BLANK_A4_PDF, a as BLANK_PDF, C as CUSTOM_A4_PDF, D as DEFAULT_FONT_NAME, M as MM_TO_PT_RATIO, P as PT_TO_MM_RATIO, b as PT_TO_PX_RATIO, Z as ZOOM, c as b64toUint8Array, d as checkDesignerProps, e as checkFont, f as checkGenerateProps, g as checkInputs, h as checkPreviewProps, i as checkTemplate, j as checkUIOptions, k as checkUIProps, l as cloneDeep, m as getAllFonts, n as getB64BasePdf, o as getBuiltinFontsData, p as getDefaultFont, q as getFallbackFontName, r as getInputFromTemplate, s as isBlankPdf, t as isHexValid, u as mm2pt, v as pt2mm, w as pt2px, x as px2mm } from './chunks/helper-
|
|
2
|
-
export { PDFME_VERSION } from './chunks/index-
|
|
3
|
-
export { g as getDynamicTemplate, p as pluginRegistry } from './chunks/pluginRegistry-
|
|
1
|
+
export { B as BLANK_A4_PDF, a as BLANK_PDF, C as CUSTOM_A4_PDF, D as DEFAULT_FONT_NAME, M as MM_TO_PT_RATIO, P as PT_TO_MM_RATIO, b as PT_TO_PX_RATIO, Z as ZOOM, c as b64toUint8Array, d as checkDesignerProps, e as checkFont, f as checkGenerateProps, g as checkInputs, h as checkPreviewProps, i as checkTemplate, j as checkUIOptions, k as checkUIProps, l as cloneDeep, m as getAllFonts, n as getB64BasePdf, o as getBuiltinFontsData, p as getDefaultFont, q as getFallbackFontName, r as getInputFromTemplate, s as isBlankPdf, t as isHexValid, u as mm2pt, v as pt2mm, w as pt2px, x as px2mm } from './chunks/helper-D7XF1bxK.js';
|
|
2
|
+
export { PDFME_VERSION } from './chunks/index-D1FuD_XZ.js';
|
|
3
|
+
export { g as getDynamicTemplate, p as pluginRegistry } from './chunks/pluginRegistry-DEA2P0ud.js';
|
|
4
4
|
export { r as replacePlaceholders } from './chunks/expression-B-F1KCfk.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'buffer';
|
package/dist/esm/converter.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pdfjsLib from 'pdfjs-dist';
|
|
2
2
|
import PDFJSWorker from 'pdfjs-dist/build/pdf.worker.entry.js';
|
|
3
|
-
import { v as pt2mm, u as mm2pt } from './chunks/helper-
|
|
3
|
+
import { v as pt2mm, u as mm2pt } from './chunks/helper-D7XF1bxK.js';
|
|
4
4
|
import { Z as PDFDocument } from './chunks/PDFButton-CvvB9ITJ.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'buffer';
|
package/dist/esm/generator.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { A as AFRelationship, a as AcroButtonFlags, b as AcroChoiceFlags, c as AcroFieldFlags, d as AcroTextFlags, e as AnnotationFlags, f as AppearanceCharacteristics, B as BlendMode, C as Cache, g as CombedTextLayoutError, h as CustomFontEmbedder, i as CustomFontSubsetEmbedder, D as Duplex, E as EncryptedPDFError, j as ExceededMaxLengthError, F as FieldAlreadyExistsError, k as FieldExistsAsNonTerminalError, l as FileEmbedder, m as FontkitNotRegisteredError, n as ForeignPageError, I as ImageAlignment, o as InvalidFieldNamePartError, p as InvalidMaxLengthError, J as JpegEmbedder, M as MissingOnValueCheckError, N as NoSuchFieldError, q as NonFullScreenPageMode, P as PDFAcroButton, r as PDFAcroCheckBox, s as PDFAcroChoice, t as PDFAcroComboBox, u as PDFAcroField, v as PDFAcroForm, w as PDFAcroListBox, x as PDFAcroNonTerminal, y as PDFAcroPushButton, z as PDFAcroRadioButton, G as PDFAcroSignature, H as PDFAcroTerminal, K as PDFAcroText, L as PDFAnnotation, O as PDFArray, Q as PDFBool, R as PDFButton, S as PDFCatalog, T as PDFCheckBox, U as PDFContentStream, V as PDFContext, W as PDFCrossRefSection, X as PDFCrossRefStream, Y as PDFDict, Z as PDFDocument, _ as PDFDropdown, $ as PDFEmbeddedPage, a0 as PDFField, a1 as PDFFlateStream, a2 as PDFFont, a3 as PDFForm, a4 as PDFHeader, a5 as PDFHexString, a6 as PDFImage, a7 as PDFInvalidObject, a8 as PDFJavaScript, a9 as PDFNull, aa as PDFObjectCopier, ab as PDFObjectParser, ac as PDFObjectStream, ad as PDFObjectStreamParser, ae as PDFOptionList, af as PDFPage, ag as PDFPageEmbedder, ah as PDFPageLeaf, ai as PDFPageTree, aj as PDFParser, ak as PDFRadioGroup, al as PDFRawStream, am as PDFRef, an as PDFSignature, ao as PDFStream, ap as PDFStreamWriter, aq as PDFString, ar as PDFTextField, as as PDFTrailer, at as PDFTrailerDict, au as PDFWidgetAnnotation, av as PDFWriter, aw as PDFXRefStreamParser, ax as PageSizes, ay as ParseSpeeds, az as PngEmbedder, aA as PrintScaling, aB as ReadingDirection, aC as RemovePageFromEmptyDocumentError, aD as RichTextFieldReadError, aE as StandardFontEmbedder, aF as StandardFonts, aG as TextAlignment, aH as UnexpectedFieldTypeError, aI as ViewerPreferences, aJ as createPDFAcroField, aK as createPDFAcroFields, aL as decodePDFRawStream, aM as defaultButtonAppearanceProvider, aN as defaultCheckBoxAppearanceProvider, aO as defaultDropdownAppearanceProvider, aP as defaultOptionListAppearanceProvider, aQ as defaultRadioGroupAppearanceProvider, aR as defaultTextFieldAppearanceProvider, aS as drawButton, aT as drawCheckBox, aU as drawCheckMark, aV as drawEllipse, aW as drawEllipsePath, aX as drawImage, aY as drawLine, aZ as drawLinesOfText, a_ as drawOptionList, a$ as drawPage, b0 as drawRadioButton, b1 as drawRectangle, b2 as drawSvgPath, b3 as drawText, b4 as drawTextField, b5 as drawTextLines, b6 as hasSurrogates, b7 as hasUtf16BOM, b8 as highSurrogate, b9 as isWithinBMP, ba as layoutCombedText, bb as layoutMultilineText, bc as layoutSinglelineText, bd as lowSurrogate, be as normalizeAppearance, bf as pdfDocEncodingDecode, bg as rotateInPlace, bh as utf16Decode, bi as utf16Encode, bj as utf8Encode, bk as waitForTick } from './chunks/PDFButton-CvvB9ITJ.js';
|
|
2
2
|
import { C as CharCodes, be as ColorTypes, X as CorruptPageTreeError, aH as FillRule, S as IndexOutOfBoundsError, T as InvalidAcroFieldValueError, I as InvalidPDFDateStringError, W as InvalidTargetIndexError, ba as LineCapStyle, b9 as LineJoinStyle, M as MethodNotImplementedError, bf as MissingCatalogError, O as MissingDAEntryError, a6 as MissingKeywordError, a5 as MissingPDFHeaderError, F as MissingPageContentsEmbeddingError, R as MissingTfOperatorError, V as MultiSelectValueError, _ as NextByteAssertionError, Y as NumberParsingError, h as PDFArrayIsNotRectangleError, a7 as PDFInvalidObjectParsingError, k as PDFName, i as PDFNumber, P as PDFObject, $ as PDFObjectParsingError, n as PDFOperator, o as PDFOperatorNames, bg as PDFParsingError, a2 as PDFStreamParsingError, b7 as PageEmbeddingMismatchedContextError, j as PrivateConstructorError, a3 as ReparseError, bh as RotationTypes, a4 as StalledParserError, bi as StandardFontValues, bj as TextRenderingMode, a0 as UnbalancedParenthesisError, U as UnexpectedObjectTypeError, G as UnrecognizedStreamTypeError, E as UnsupportedEncodingError, bk as addRandomSuffix, aP as adjustDimsForRotation, ab as appendBezierCurve, aa as appendQuadraticCurve, l as arrayAsString, an as asNumber, bl as asPDFName, bm as asPDFNumber, K as assertEachIs, N as assertInteger, aS as assertIs, J as assertIsOneOf, b3 as assertIsOneOfOrUndefined, aZ as assertIsSubset, aV as assertMultiple, aT as assertOrUndefined, aY as assertPositive, L as assertRange, a_ as assertRangeOrUndefined, bn as backtick, aF as beginMarkedContent, aw as beginText, bd as breakTextIntoLines, B as byAscendingId, v as bytesFor, b5 as canBeConvertedToUint8Array, aL as charAtIndex, g as charFromCode, bo as charFromHexCode, aN as charSplit, aK as cleanText, aD as clip, bp as clipEvenOdd, a8 as closePath, c as cmyk, bb as colorString, aW as colorToComponents, aQ as componentsToColor, ah as concatTransformationMatrix, f as copyStringIntoBuffer, bq as createTypeErrorMsg, br as createValueErrorMsg, bs as decodeFromBase64, bt as decodeFromBase64DataUri, d as degrees, a as degreesToRadians, al as drawObject, b8 as encodeToBase64, aG as endMarkedContent, aE as endPath, aC as endText, bu as error, bv as escapeRegExp, bw as escapedNewlineChars, av as fill, au as fillAndStroke, aI as fillEvenOdd, Q as findLastMatch, bx as getType, aR as grayscale, b0 as isArrayEqual, by as isNewlineChar, b4 as isStandardFont, bz as isType, q as last, aM as lineSplit, a9 as lineTo, H as mergeIntoTypedArray, aJ as mergeLines, D as mergeUint8Arrays, bA as moveText, ac as moveTo, bB as newlineChars, aB as nextLine, bC as numberToString, p as padStart, x as parseDate, b6 as pluckIndices, am as popGraphicsState, af as pushGraphicsState, bD as radians, bE as radiansToDegrees, b2 as range, bF as rectangle, bc as rectanglesAreEqual, aO as reduceRotation, bG as restoreDashPattern, u as reverseArray, r as rgb, bH as rotateAndSkewTextDegreesAndTranslate, az as rotateAndSkewTextRadiansAndTranslate, ae as rotateDegrees, ai as rotateRadians, aX as rotateRectangle, aj as scale, bI as setCharacterSpacing, bJ as setCharacterSqueeze, at as setDashPattern, bK as setFillingCmykColor, ar as setFillingColor, bL as setFillingGrayscaleColor, bM as setFillingRgbColor, ax as setFontAndSize, ag as setGraphicsState, as as setLineCap, ay as setLineHeight, bN as setLineJoin, ap as setLineWidth, bO as setStrokingCmykColor, ao as setStrokingColor, bP as setStrokingGrayscaleColor, bQ as setStrokingRgbColor, bR as setTextMatrix, bS as setTextRenderingMode, bT as setTextRise, bU as setWordSpacing, aA as showText, bV as singleQuote, s as sizeInBytes, bW as skewDegrees, ak as skewRadians, A as sortedUniq, bX as square, a$ as stringAsByteArray, aq as stroke, w as sum, e as toCharCode, z as toCodePoint, aU as toDegrees, b as toHexString, y as toHexStringOfMinLength, t as toRadians, b1 as toUint8Array, ad as translate, m as typedArrayFor, bY as values } from './chunks/colors-jzbEzNi4.js';
|
|
3
|
-
import { s as isBlankPdf, n as getB64BasePdf, u as mm2pt, f as checkGenerateProps, l as cloneDeep, v as pt2mm } from './chunks/helper-
|
|
4
|
-
import { p as pluginRegistry, g as getDynamicTemplate } from './chunks/pluginRegistry-
|
|
3
|
+
import { s as isBlankPdf, n as getB64BasePdf, u as mm2pt, f as checkGenerateProps, l as cloneDeep, v as pt2mm } from './chunks/helper-D7XF1bxK.js';
|
|
4
|
+
import { p as pluginRegistry, g as getDynamicTemplate } from './chunks/pluginRegistry-DEA2P0ud.js';
|
|
5
5
|
import { r as replacePlaceholders } from './chunks/expression-B-F1KCfk.js';
|
|
6
6
|
import * as fontkit from 'fontkit';
|
|
7
|
-
import { b as builtInPlugins, g as getDynamicHeightsForTable } from './chunks/index-
|
|
7
|
+
import { b as builtInPlugins, g as getDynamicHeightsForTable } from './chunks/index-qTsnfbi7.js';
|
|
8
8
|
import 'pako';
|
|
9
9
|
import '@pdf-lib/standard-fonts';
|
|
10
10
|
import '@pdf-lib/upng';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export { Designer, Form, Viewer } from './ui.js';
|
|
2
|
-
export { b as builtInPlugins, g as getDynamicHeightsForTable, s as multiVariableText } from './chunks/index-
|
|
2
|
+
export { b as builtInPlugins, g as getDynamicHeightsForTable, s as multiVariableText } from './chunks/index-qTsnfbi7.js';
|
|
3
3
|
export { img2pdf, pdf2img, pdf2size } from './converter.js';
|
|
4
4
|
export { insert, merge, move, organize, remove, rotate, split } from './manipulator.js';
|
|
5
5
|
export { Canvas, PropPanel as DesignerPropPanel, PdfmeProvider, SchemaList, convertPdfToBase64, plugins, useDesigner, useDesignerContext } from './print-designer-editor.js';
|
|
6
6
|
export { barcodes, checkbox, date, dateTime, radioGroup, select, svg, table, text, time } from './schemas.js';
|
|
7
|
-
export { d as dynamicBarcode, a as dynamicQrCode, b as dynamicTable, e as ellipse, i as image, l as line, r as rectangle, s as signature, v as variableBarcodes } from './chunks/index-
|
|
7
|
+
export { d as dynamicBarcode, a as dynamicQrCode, b as dynamicTable, e as ellipse, i as image, l as line, r as rectangle, s as signature, v as variableBarcodes } from './chunks/index-pDt5vVVj.js';
|
|
8
8
|
export { generate } from './generator.js';
|
|
9
|
-
export { B as BLANK_A4_PDF, a as BLANK_PDF, C as CUSTOM_A4_PDF, D as DEFAULT_FONT_NAME, M as MM_TO_PT_RATIO, P as PT_TO_MM_RATIO, b as PT_TO_PX_RATIO, Z as ZOOM, c as b64toUint8Array, d as checkDesignerProps, e as checkFont, f as checkGenerateProps, g as checkInputs, h as checkPreviewProps, i as checkTemplate, j as checkUIOptions, k as checkUIProps, l as cloneDeep, m as getAllFonts, n as getB64BasePdf, o as getBuiltinFontsData, p as getDefaultFont, q as getFallbackFontName, r as getInputFromTemplate, s as isBlankPdf, t as isHexValid, u as mm2pt, v as pt2mm, w as pt2px, x as px2mm } from './chunks/helper-
|
|
10
|
-
export { PDFME_VERSION } from './chunks/index-
|
|
11
|
-
export { g as getDynamicTemplate, p as pluginRegistry } from './chunks/pluginRegistry-
|
|
9
|
+
export { B as BLANK_A4_PDF, a as BLANK_PDF, C as CUSTOM_A4_PDF, D as DEFAULT_FONT_NAME, M as MM_TO_PT_RATIO, P as PT_TO_MM_RATIO, b as PT_TO_PX_RATIO, Z as ZOOM, c as b64toUint8Array, d as checkDesignerProps, e as checkFont, f as checkGenerateProps, g as checkInputs, h as checkPreviewProps, i as checkTemplate, j as checkUIOptions, k as checkUIProps, l as cloneDeep, m as getAllFonts, n as getB64BasePdf, o as getBuiltinFontsData, p as getDefaultFont, q as getFallbackFontName, r as getInputFromTemplate, s as isBlankPdf, t as isHexValid, u as mm2pt, v as pt2mm, w as pt2px, x as px2mm } from './chunks/helper-D7XF1bxK.js';
|
|
10
|
+
export { PDFME_VERSION } from './chunks/index-D1FuD_XZ.js';
|
|
11
|
+
export { g as getDynamicTemplate, p as pluginRegistry } from './chunks/pluginRegistry-DEA2P0ud.js';
|
|
12
12
|
export { r as replacePlaceholders } from './chunks/expression-B-F1KCfk.js';
|
|
13
13
|
import 'fontkit';
|
|
14
14
|
import 'buffer';
|