--

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, height
var image2 = new Image();
image2.src = 'images/reactLogo2.png';
doc.addImage(image2, 'PNG', 300, 200, 50, 50);

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response