we are in the process of updating our WPF Application from .Net Framework 4.8 to .Net6.
In our reporting we make use of emf-files.
Unfortunately we noticed, that emf-files do not seem to be supported in .Net6.
Running the following Test in a .Net 4.8 Framework test works, whereas it fails with ArgumentException: Not support metafile in .Net 6
- Code: Select all
[Test]
public void TestPdfImageFromFile{
FileInfo fileInfo = new FileInfo(Assembly.GetExecutingAssembly().Location);
PdfImage.FromFile(Path.Combine(fileInfo.DirectoryName, "partial_variances.emf"));
}
Can you confirm, that this behaviour is by design for .Net 6?
Can you point me to an alternative wich allows us to continue using vector based images in Spire generated PDFs in .Net 6?
Can you predict when above code will work for .Net 6 projects?
Thanks in advance, Andreas