w-docx-split
v1.0.16
Published
A tool for split docx.
Maintainers
Readme
w-docx-split
A tool for split docx.
Documentation
To view documentation or get support, visit docs.
Core
w-docx-splitis based on thewin32cominpython, and only run inWindows.
Installation
Using npm(ES6 module):
npm i w-docx-splitExample:
Link: [dev source code]
import w from 'wsemi'
import WDocxSplit from './src/WDocxSplit.mjs'
//import WDocxSplit from 'w-docx-split/src/WDocxSplit.mjs'
//import WDocxSplit from 'w-docx-split'
async function test() {
let fpIn = `./test/docin.docx`
let strSep = '[systag:sepline]'
let fdOut = `./test/out`
let opt = {
padZero: 3,
}
let r = await WDocxSplit(fpIn, strSep, fdOut, opt)
console.log(r)
// => ok
w.fsDeleteFolder(fdOut)
}
test()
.catch((err) => {
console.log('catch', err)
})