ShapeBaseIsImage Property |
Namespace: Aspose.Words.Drawing
Document doc = new Document(); string fileName = MyDir + "Document.html"; // Open the stream using (Stream stream = File.OpenRead(fileName)) { // Open the document. Note the Document constructor detects HTML format automatically // Pass the URI of the base folder so any images with relative URIs in the HTML document can be found LoadOptions loadOptions = new LoadOptions(); loadOptions.BaseUri = ImageDir; doc = new Document(stream, loadOptions); } // Save in the DOC format doc.Save(ArtifactsDir + "Document.OpenFromStreamWithBaseUri.doc");