Closed htt828 closed 2 years ago
async docx2pdf(wordConfigFilePath, pdfConfigFilePath, fileName) { const toPDF = pipe( gotenberg(path.resolve(pdfConfigFilePath)), convert, office, to(landscape), set(filename(fileName + '.pdf')), please ); const pdf = await toPDF({ 'fileName.docx': fs.readFileSync(path.resolve(wordConfigFilePath, fileName + '.docx')) }); }, 我想通过docx转pdf 但是出现了这个报错 typeError [ERR_INVALID_PROTOCOL]: Protocol "d:" not supported. Expected "https:"
Did you solve your problem?
async docx2pdf(wordConfigFilePath, pdfConfigFilePath, fileName) { const toPDF = pipe( gotenberg(path.resolve(pdfConfigFilePath)), convert, office, to(landscape), set(filename(fileName + '.pdf')), please ); const pdf = await toPDF({ 'fileName.docx': fs.readFileSync(path.resolve(wordConfigFilePath, fileName + '.docx')) }); }, 我想通过docx转pdf 但是出现了这个报错 typeError [ERR_INVALID_PROTOCOL]: Protocol "d:" not supported. Expected "https:"