@jswork/next-doc2pdf

1.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @jswork/next-doc2pdf

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

5.23 kB

Total Files

5

Last publish

Collaborators

  • afeiship