@pdfweave/common
v0.2.0
Published
TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!
Maintainers
Readme
@pdfweave/common
@pdfweave/common contains the shared TypeScript types, validators, constants, layout helpers, data-binding utilities, and plugin contracts used across PDFweave. PDFweave is forked from upstream pdfme, and this package preserves that foundation under the @pdfweave/* namespace.
Install
npm install @pdfweave/commonUsage
import { BLANK_A4_PDF, checkTemplate, mm2pt } from '@pdfweave/common';
import type { Template } from '@pdfweave/common';
const template: Template = {
basePdf: BLANK_A4_PDF,
schemas: [[]],
};
checkTemplate(template);
const marginPt = mm2pt(12);
console.log(marginPt);Notes
Use this package for template types, schema contracts, runtime validation, unit conversion, expression helpers, and plugin authoring types.
Most applications install this indirectly through @pdfweave/generator, @pdfweave/schemas, or @pdfweave/ui.
Links
License
MIT, same as upstream pdfme.
