We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

rendering WMF

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

1 Reply

SS Sri Subhashini M Syncfusion Team August 3, 2009 11:31 AM UTC

Hi Byron,

Thank you for your interest in Essetial PDF.

Drawing Emf images

I was able to reproduce the issue which you mentioned here. And, this is not a control issue. The given image contains jagged edges. Please do find the sample screen shot which shows jagged edges in the image and let me know if you need any information,
http://files.syncfusion.com/samples/PDF.Windows/SampleShot_88613.zip

Regards,
Suba

Loader.
Live Chat Icon For mobile
Up arrow icon