We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Words.Drawing.Shape height & width

Hi,


I need to add a image in the Header of portion of my document dynamically. The image dimension may vary. I have put a limitation on the width to (page width - left margin - right margin) while the limit on height is set to (50 - this is derived from testing). What I want to understand is what is height calculated as (CM, Inches, Pixels or Points)?

This will help me to set a size limit on the image that is given as a input to the document builder. Kindly clarify?

Regards,
Yogi

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Aspose.Words uses point units to specify all sizes, including size of shapes.

I think in your case, the code provided here could be useful for you:

http://www.aspose.com/community/forums/3/201955/problems-with-mail-merging-images/showthread.aspx

Best regards.