@jswork/next-doc2pdf
v1.0.0
Published
Covert doc/docx to pdf.
Downloads
5
Readme
next-doc2pdf
Covert doc/docx to pdf.
installation
npm install -S @jswork/next-doc2pdf
usage
import '@jswork/next-doc2pdf';
nx.doc2pdf({
input: './__tests__/docs/zscqf_jc_whl_jy0101.doc',
output: './__tests__/docs/zscqf_jc_whl_jy0101.pdf'
})
doc2pdf + merge
require("@jswork/next-doc2pdf");
require("@jswork/next-pdf-merge");
nx.doc2pdf({
input: "./files/*.doc",
output: `./pdfs`
}).then(res => {
console.log("convert done!");
nx.pdfMerge({
input: "./pdfs/*.pdf"
});
});
resources
- https://github.com/unoconv/unoconv
- http://macappstore.org/unoconv/
- http://dag.wiee.rs/home-made/unoconv/
- https://www.libreoffice.org/
license
Code released under the MIT license.