We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PDFImage Problems

Thread ID:





80601 Apr 15,2009 01:57 PM UTC Apr 24,2009 09:51 AM UTC WinForms 2
Tags: PDF
Manuel Koch
Asked On April 15, 2009 01:57 PM UTC


my code:

PdfImage pdfImage = PdfImage.FromImage(image);

the size of image is set correctly but the pdfImage's PhysicalDimensions are smaller than the dimension it will be drawn by

Graphics.DrawImage(pdfImage , result.Bounds.X, result.Bounds.Y);

how can i solve the problem?


Bhuvaneswari P [Syncfusion]
Replied On 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,

Bhuvaneswari P [Syncfusion]
Replied On 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.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon