1.0.0 • Published 3 years ago

@jswork/next-doc2pdf v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

next-doc2pdf

Covert doc/docx to pdf.

version license size download

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

license

Code released under the MIT license.