I have a small application that uses a template Word document and replaces certain words in it with other words and an image using the getMailMerge() function. Part of this process includes inserting an image. (See source guide below)
I would like to ask how I can insert the image in a specific height dimension, because images too large would ruin the layout of my document. Any sample code snippet would be much appreciated.
Thanks for the code snippet, Im currently trying it out, but is there a way to be able to set the aspect-ratio to scale?
I just need to adjust the height of the image, and want the width to scale accordingly, since the images can be any aspect ratio but must fit a certain portion of the document. (square, vertical rectangle, horizontal rectangle, etc)
Thanks for your inquiry. We have logged your requirement in our issue tracking system as WORDSNET-12866. Our product team will further look into the details of this problem and we will keep you updated on the status of this issue. We apologize for any inconvenience.
So does this mean that Aspose Words does not currently support only setting 1 dimension (height/width) of an image and have the other dimension (width/height) scale accordingly?
Thanks for your inquiry. You can set one dimension but it will not have any effect on the other dimension. Yes. your understanding is correct that currently you can’t programmatically set the Aspect Ratio of image to Scale. We will inform you as soon as this feature is supported. We apologize for any inconvenience.