public void InsertImageFromUrl()
{
//ExStart
//ExFor:DocumentBuilder.InsertImage(String)
//ExSummary:Shows how to insert an image into a document from a web address.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertImage("http://www.aspose.com/images/aspose-logo.gif");
doc.Save(MyDir + @"\Artifacts\DocumentBuilder.InsertImageFromUrl.doc");
//ExEnd
// Verify that the image was inserted into the document.
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
Assert.IsNotNull(shape);
Assert.True(shape.HasImage);
}