I added an icon in the header as template but whatever point, size I set up, It always stretches. my Image has originally 144x144 size. Therefore I expect it to be not strecthed. How can I adjust this please? Maybe I am missing the point of how to use PointF, RectangleF etc?
PdfPage page = pdfDocument.Pages.Add();
PointF bounds = new PointF(0, 20);
PdfPageTemplateElement header = new PdfPageTemplateElement(bounds, new SizeF(144,144));
header.Alignment = PdfAlignmentStyle.TopCenter;
Stream imgStream = typeof(App).GetTypeInfo().Assembly.GetManifestResourceStream("Images.icon.jpg");
header.Graphics.DrawImage(PdfImage.FromStream(imgStream), new RectangleF( 0,20, 144,144));
pdfDocument.Template.Top = header;