我正在使用Azure Functions生成pdf,正在生成pdf,但无法获取pdf上的图像?谁能告诉我如何在pdf中添加图像,该图像已添加到放置index.js的文件夹中。
if (Code === '1416') {
account.img = `\EmpPDF\\16.png`;
} else if (Code === '1411') {
account.img = `\EmpPDF\\11.png`;
} else {
account.img = `\EmpPDF\\1.png`;
}
const imgPath = Path.join(__dirname, account.img);
context.log("img Path : ", account.img);
我最好将图像放入blob存储,然后在azure函数中请求它们
[Blob("path/to/image", FileAccess.Read, Connection = "Connection")] Stream image