Hi,
Im trying to render a WMF image onto a PDF but the image isnt rendering as it should.
Please have a look at the attached PDF, and the WMF a let me know why its rendering with jagged edges.
Here is the code that generates the PDF.
[Test]
[Explicit]
public void wmf_test()
{
var pdf = new PdfDocument();
pdf.PageSettings.Margins.All = 0;
pdf.Pages.Add();
string imagesDirectory = ConfigurationManager.AppSettings["project_path"] + "src/app/content/images/";
var toyotaLogo = PdfImage.FromFile(imagesDirectory + "genuinelogo_white.wmf");
pdf.Pages[0].Graphics.DrawRectangle(PdfBrushes.Red,0,0,400,400);
pdf.Pages[0].Graphics.DrawImage(toyotaLogo, 10, 10, toyotaLogo.PhysicalDimension.Width, toyotaLogo.PhysicalDimension.Height);
string fileName = ConfigurationManager.AppSettings["project_path"] + "temp/" + "eps_test.pdf";
pdf.Save(fileName);
}
Thanks
example_40ba2104.rar