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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

rendering WMF

Thread ID:

Created:

Updated:

Platform:

Replies:

88613 Aug 2,2009 10:36 PM UTC Aug 3,2009 11:31 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Byron Walker
Asked On August 2, 2009 10:36 PM UTC

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

Sri Subhashini M [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;