docxgenius
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

docxgenius

A poi-tl-based docx generator

基于 poi-tl 的 docx 模板生成器

pnpm add docxgenius
export class DocxGenius {
  constructor()
  // 从模板文件渲染  Render docx from a template file  
  renderFile(tplPath: string, outPath: string, jsonData: string): void
  // 从 base64 渲染  Render docx from base64 string
  renderBase64(template: string, jsonData: string): string
  // 获取模板文件中的变量  Get the variables from the template file  
  templateMeta(template: string): Array<string>
}

支持平台 | Supported Platforms

  • x86_64-apple-darwin
  • aarch64-apple-darwin
  • aarch64-linux-android
  • aarch64-pc-windows-msvc
  • armv7-unknown-linux-gnueabihf
  • i686-pc-windows-msvc
  • armv7-linux-androideabi
  • x86_64-pc-windows-msvc
  • x86_64-unknown-linux-gnu

Readme

Keywords

none

Package Sidebar

Install

npm i docxgenius

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

11.5 kB

Total Files

4

Last publish

Collaborators

  • sovlookup