docx-rs/vrt/index.js

14 lines
322 B
JavaScript
Raw Normal View History

2019-11-12 06:33:45 +02:00
const glob = require("glob");
const path = require("path");
const createPDF = require("./pdf");
glob(
path.join(__dirname, "..", "./docx-core/tests/output/**/*.docx"),
{},
async (err, files) => {
for await (file of files) {
await createPDF(file, path.join(__dirname, "./screenshot/actual"));
}
}
);