I need to load image with a URL rather than local image using pdfkit. But it fails to load the image

Viewed 8

doc .fontSize(8) .text(Id, 50, y) .text(age, 80, y) .text(name, 130, y) .text(name2, 200, y) .text(price, 260, y,) .text(hours, 310, y,)

     .image("https://www.istockphoto.com/photo/red-apple-gm184276818-17092601?phrase=apple", 360, y, { width: 60,align: "center" })
0 Answers
Related