For some, not all, EMF files I get following error when trying to save the image to disk:
EndOfStreamException “Unable to read beyond the end of the stream”
Here is code that recreates it and I have attached the sample EMF file.
File.zip (460 Bytes)
var inputFile = @"d:\input\1.emf";
try
{
var image = Image.Load(inputFile);
image.Save(@"d:\output\new.emf");
}catch(Exception ex)
{
// throws a unable to read past stream exception
Console.WriteLine(ex);
}
Console.ReadLine();
}