fix some bug and update document
This commit is contained in:
parent
bb6dbd8055
commit
8c3790bead
9 changed files with 74 additions and 33 deletions
|
|
@ -8,7 +8,7 @@ import { LibreOfficeFileConverter } from 'libreoffice-file-converter';
|
|||
const TEMPLATE_FOLDER_NAME = "templates/xlsx"
|
||||
|
||||
/**
|
||||
* docxTemplate Uses docx-template to convert input data and template to output buffer.
|
||||
* xlsxTemplate Uses xlsx-template-next to convert input data and template to output buffer.
|
||||
* You have to handle exception throw by function
|
||||
* template keep in folder templates
|
||||
* @param {String} base base path of caller relate to template-docx foler (no trail slash)
|
||||
|
|
@ -92,7 +92,7 @@ xlsxTemplateRoute.get("/", async function (req, res) {
|
|||
* 201:
|
||||
* description: เอกสารถูกสร้างขึ้น created.
|
||||
* content:
|
||||
* application/vnd.openxmlformats-officedocument.wordprocessingml.document:
|
||||
* application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
|
||||
* schema:
|
||||
* type: string
|
||||
* format: binary
|
||||
|
|
@ -100,7 +100,7 @@ xlsxTemplateRoute.get("/", async function (req, res) {
|
|||
* schema:
|
||||
* type: string
|
||||
* format: binary
|
||||
* application/vnd.oasis.opendocument.text:
|
||||
* application/vnd.oasis.opendocument.spreadsheet:
|
||||
* schema:
|
||||
* type: string
|
||||
* format: binary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue