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

Free Support Forum - aspose.com

Aspose doc to WordML conversion

Hi,


i am converting a doc document to Word ML through doc.Save(outputStream, saveFormat) method.

The source doc document has some images and i am extracting the images also.

The resulting wordml (.xml) document has

<v:imagedata src=“wordml://0800000A.wmz” o:title="" /> for images.

is it possible to replace the src attribute of imagedata element with the extracted images source?

something like src="\mymachine\image1.wmf"> instead of wordml://0800000A.wmz


Thanks,

Ameer

Hi Ameer,

Thanks for your inquiry. Please note that Aspose.Words mimics the same behaviour as MS Word does.
If you convert your document to WordML using MS Word, you will get the
same output.

Moreover, Aspose.Words does not provide any API to replace source of v:imagedata tag. However, you can read the WordML file using C# code and replace the source (src property) of v:imagedata.

Please let us know if you have any more queries.