I keep getting an error with some converted code and I am not sure what the problem is. The error is "Class 'ImageHander' must implement 'Function GetImage(src As String, h As System.Collections.Generic.Dictionary(Of String, String), cprops As ChainedProperties, doc As IDocListener) As Image' for interface 'iTextSharp.text.html.simpleparser.IImageProvider'"
Given the following C# code:
public class ImageHander : IImageProvider
{
public string BaseUri;
public iTextSharp.text.Image GetImage(string src,
Dictionary<string, string> h,
ChainedProperties cprops,
IDocListener doc)
{
return iTextSharp.text.Image.GetInstance(
HttpContext.Current.Server.MapPath(
new Uri(new Uri(BaseUri), src).AbsolutePath
)
);
}
}
Several diffe ...
Go to the complete details ...