Skip to content

Conversation

@sameerkhan001
Copy link
Collaborator

Hi All,

Task Id: https://dev.azure.com/EssentialStudio/Document%20Processing%20Libraries/_workitems/edit/260329

Task Name: Need to add the code sample for create PDF page based on the image size using PdfUnitConverter class

Regards,
Sameerkhan N

PdfUnitConverter converter = new PdfUnitConverter();

//Convert the image size from pixel to points
SizeF size = converter.ConvertFromPixels(image.PhysicalDimension, PdfGraphicsUnit.Pixel);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we convert the image physicalDimension from pixel to point, then the PdfGraphicsUnit must be specified as point. Can you cross check and update it.

@chinnumuniyappan chinnumuniyappan merged commit e2cc2df into master Oct 28, 2025
1 check failed
@chinnumuniyappan chinnumuniyappan deleted the 260329 branch October 28, 2025 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants