@ -13,7 +13,7 @@ const config = {
*/
inputDir: '',
// 要转换的文件个数, 0表示全部转换
rangeNum: 15,
rangeNum: 10,
},
// 裁剪商品封面图
cover: {
@ -51,10 +51,8 @@ fs.readdirSync(inputDir).forEach((file) => {
if (ppt.pptFormat.has(ext)) {
execNum++;
if (base.rangeNum && execNum > base.rangeNum) {
console.log(base.rangeNum, execNum, '跳过');
return;
}
console.log(base.rangeNum, execNum, '执行');
const inputPath = path.join(inputDir, file);
convertPptToPdf(inputPath);