The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
BPBhuvaneswari P Syncfusion Team April 22, 2009 11:36 AM UTC
Hi Reaper,
Thank you for your inquiry.
I am able to reproduce the issue. The issue reported by you is suspected to be a defect. We have forwarded this to our Development Team for further analysis. We will update you with our Development Team’s response in two business days.
Thank you for your patience.
Best Regards, Bhuvana
BPBhuvaneswari P Syncfusion Team April 24, 2009 09:51 AM UTC
Hi Reaper,
Thank you for your patience.
The difference in Image Size and PhysicalDimension is image size return in Pixels and PhysicalDimension returns in Points.
Since Image size is return .Net image size and for PhysicalDimension we have internally overrides and converted to points to draw into the PDF.
So please use the PdfUnitConvertor class to convert the Points to Pixel. This will return the correct the dimension.
PdfImage image = new PdfBitmap(System.Drawing.Image.FromFile(@"..\..\Image.jpg")); PdfUnitConvertor con = new PdfUnitConvertor(); SizeF size = con.ConvertToPixels(image.PhysicalDimension, PdfGraphicsUnit.Point); MessageBox.Show("Sync Physical" + size.ToString());
Please try this and let us know if you need any more details.