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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Image quality issue

Thread ID:





116198 Apr 23,2014 09:16 AM UTC Apr 28,2014 04:45 AM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
jonathan crawford
Asked On April 23, 2014 09:16 AM UTC

i am inserting as logo into the header of a pdf but the image quality on the pdf is very poor and does not
reflect the quality of the image it is using.
the image is a png and 256 by 102 px.
The code I am using is
     PdfBitmap image = PdfImage.FromFile(basePath + "\\Images\\PDFReports\\logo.png") as PdfBitmap;
            PointF imageLocation = new PointF(doc.Pages[0].GetClientSize().Width - 140 , 20);
            RectangleF rect = new RectangleF(0, 0, doc.Pages[0].GetClientSize().Width, 90);
            PdfPageTemplateElement header = new PdfPageTemplateElement(rect);
            image.Quality = 100;
            header.Graphics.ScaleTransform(.88f, .88f);
            header.Graphics.DrawImage(image, imageLocation);
            doc.Template.Top = header;

Praveenkumar H [Syncfusion]
Replied On April 28, 2014 04:45 AM UTC

Hi Jonathan,

Thank you for using syncfusion products,

We afraid that we are not able to reproduce the issue.

We have attached sample project for your reference, please modify the sample to reproduce the issue, and send the sample back to us.

Please let us know if you need further assistance.

With Regards,


Attachment: PDF_header_3a4adb12.zip


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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