Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images are running out of the page #65

Closed
ADITI1001 opened this issue Mar 10, 2018 · 1 comment
Closed

Images are running out of the page #65

ADITI1001 opened this issue Mar 10, 2018 · 1 comment

Comments

@ADITI1001
Copy link

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?

@dolanmiu
Copy link
Owner

Setting image width and height are not yet supported

At the moment, the best bet is use Photoshop to resize the image. It will be a feature in future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants