Hello,
my development team and I are evaluating to buy PDF Essentials, so we are doing some tests about writing in PDF using Syncfusion.Pdf.Graphics.PdfGraphics object.
In particular we are trying to draw an image using the following code:
PdfDocument wPDFDOC = new PdfDocument();
PdfPage wPDFPage = wPDFDOC.Pages.Add();
PdfGraphics wPDFGraphics = wPDFPage.Graphics;
PdfImage wPdfImage = PdfImage.FromFile (@"c:\testBitmap.bmp");
//the image size has heigth:51 and width :429 the physical dimensions are Height:38.25 and Width: 312.75
wPdfImage.Draw(wPDFGraphics, 0, 0);
wPDFDOC.Save(@"c:\testBitmap.pdf");
As result, the image printed on a pdf file is larger and stretched. It seems that the drawn image is using the image pixels size as points without any unit conversion.
Thanks
ImageError_9fd86d2e.zip