Hi
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.Save();
header.Graphics.ScaleTransform(.88f, .88f);
header.Graphics.DrawImage(image, imageLocation);
header.Graphics.Restore();
doc.Template.Top = header;
Thanks
jc