You can compare the height and width of the loaded image. If the height is greater than width then its a portrait image otherwise its landscape. I suggest you to please visit the follow
Pease visit the following thread link for your convenience for information about getting the horizontal or vertical resolution of the image.
I am using aspose-pdf-20.10 and aspose-image-20.10 version.
I would like the small image or logo converted to pdf and want the image center of the page.
I have tried image alignment horizontal and vertical but it is giving the top center of the page but it is not my desire output. i want to keep the center of the page.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.