Mar 4, 2021
Hi Prashanth — To include more than one image, you would call the doc.addImage() method twice. In the example below, we add image1 and image2 to the “doc” file.
var image1 = new Image();
image1.src = 'images/reactLogo.png';doc.addImage(image1, 'PNG', 300, 80, 50, 50);
//base64 image, format, x-coordinate, y-coordinate, width, heightvar image2 = new Image();
image2.src = 'images/reactLogo2.png';doc.addImage(image2, 'PNG', 300, 200, 50, 50);