You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The images that I am adding are running out of the page. I tried setting margins on the page, but it doesn't work to set the images to fit in the page.
Is there a way to set width and height to the image? I tried doing this -
arrboth.forEach(function(item){ const image = doc.createImage(item.image); image.properties.width = 900; image.properties.height = 900; doc.createParagraph(item.comment).style('normalPara2'); })
But it gives an error in terminal saying "Cannot set properties of undefined"
So, how can I set width and height of images to fit in the page?
The text was updated successfully, but these errors were encountered:
The images that I am adding are running out of the page. I tried setting margins on the page, but it doesn't work to set the images to fit in the page.
Is there a way to set width and height to the image? I tried doing this -
arrboth.forEach(function(item){ const image = doc.createImage(item.image); image.properties.width = 900; image.properties.height = 900; doc.createParagraph(item.comment).style('normalPara2'); })
But it gives an error in terminal saying "Cannot set properties of undefined"
So, how can I set width and height of images to fit in the page?
The text was updated successfully, but these errors were encountered: