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>
}
- 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