We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09fc6ae commit 4ddf7b1Copy full SHA for 4ddf7b1
Images/Unit-conversion-in-image-position/.NET/Unit-conversion-in-image-position/Program.cs
@@ -17,7 +17,7 @@
17
PdfUnitConverter converter = new PdfUnitConverter();
18
19
//Convert the image size from pixel to points
20
- SizeF size = converter.ConvertFromPixels(image.PhysicalDimension, PdfGraphicsUnit.Pixel);
+ SizeF size = converter.ConvertFromPixels(image.PhysicalDimension, PdfGraphicsUnit.Point);
21
22
//Set section size based on the image size
23
section.PageSettings.Size = size;
0 commit comments