High-performance document generation API. Generate documents and reports from СSV, JSON, XML with 99,9% uptime and 24/7 monitoring.
Using npm:
$ npm install blazingdocs
You can get your API Key at https://app.blazingdocs.com
const client = BlazingClient('API-KEY')
const account = await client.getAccount()
const templates = await client.getTemplates()
const usage = await client.getUsage()
const client = BlazingClient('API-KEY')
const data = readFileSync(__dirname + '/PO-Template-Array.json', 'utf8');
const parameters: MergeParameters = new MergeParameters();
parameters.dataSourceType = DataSourceType.Json; // data in json format
parameters.sequence = true; // data is array
parameters.strict = true; // keep json types
const readStream = createReadStream(__dirname + '/PO-Template-Array.docx');
const template: FormFile = new FormFile("PO-Template-Array.docx", readStream);
const operation = await client.mergeWithFormFile(data, "output.pdf", parameters, template)
See more details here https://docs.blazingdocs.com