Aspose.Words for Java : Url Resolver?

Hi,

I am in the process of evaluating Aspose.Words for Java. This is regarding the InsertHtml function in the DocumentBuilder class. I am using the “IMG” tag to specifiy the picture that needs to be included in my HTML file. The picture that needs to be included resides on a remote machine. How will the InsertHtml function handle this situation i.e. resolve the location of the image? Is there a Url Resolver that I need to use.

Also, are any any tags that the InsertHtml function does not support?

Regards,
Sindhu

Hi, Sindhu,
DocumentBuilder.InsertHtml(") works exactly as DocumentBuilder. insertImage (…)because uses it internally.
DocumentBuilder.insertImage (…) always copies local image files (or downloads external). When you save the document in MS Word format these image files are saved inside the .doc file. When you save the doc in HTML format, DocumentBuilder renames the image files something like: .001.jpeg and inserts the links to these files into the output html file. Note: anyway image files are stored locally.
Additionally, metafiles and “non-word-native” image types are converted to png.
DocumentBuilder automatically resolves local or external links. You don’t need in additional Url Resolver.
The only way to link an external picture to an html file without downloading it is using INCLUDEPICTURE field in the template document.
I think InsertHtml supports all standard html tags.
Best regards,