I am using below code to set image for an existing shape(textbox) in word document. However image is not rendering in generated pdf. Image size is small.Please help if I am missing anything. Though I am able to see bytes in oshape.Imagedata.Imagebytes, but still image is not rendering.
Node oNode = GetNode(doc.GetChildNodes(NodeType.Shape, true), "Charts");
Shape oshape = (Shape)oNode;
We use Doc.Save("c:\working\abc.pdf",Aspose.Words.SaveFormat.Pdf). One surprising behaviour that I observed is - If I call Shape.GetShaperenderer() method after calling either Shape.ImageData.Images or Shape.ImageData.SetImage(), then image gets rendered in the PDF. However, Image is too small and textbox doesn't get resized with the size of image.