Hi,
Sorry for the inconvenience caused by the issue again. We have put the issue raised to the highest priority. Our dev team is working on it. We will do our best to solve it soon.
Best Regards,
Amy
E-iceblue support team
PdfDocument doc = new PdfDocument();
PdfPageBase page = doc.Pages.Add();
//Draw the image
PdfJpegImage image = new PdfJpegImage(File.OpenRead(@"sample.jpg"));
//Set smaller size
float width = image.Width * 0.24f;
float height = image.Height * 0.24f;
float x = (page.Canvas.ClientSize.Width - width) / 2;
page.Canvas.DrawImage(image, x, 0, width, height);
doc.SaveToFile("result.pdf");
Jane.Bai wrote:Hello pedgaard,
Greetings from E-iceblue!
Has your issue been resolved?
Your feedback will be greatly appreciated.
Sincerely,
Jane
E-iceblue support team