Please note that PDF files are DPI independent and it completely depends upon the device where PDF files are going to be rendered. As far as measurement of the PDF file is concerned, you can measure PDF files in PPI (Points Per Inch) using Aspose.Pdf API. The properties of Height and Width return size in points i.e 72 points = 1 inch.
Moreover, Aspose.Pdf API generates PDF DPI independent from other file formats, however when you try to get/measure size information or set watermark images the API renders the PDF in 72 DPI resolution to perform the task.
In case if you need any further assistance, please feel free to contact us.
The code example is to get resolution and dimensions of embedded images in the PDF. In case you want to determine the DPI of PDF Page (containing text or other elements), please consider our previous response in this discussion.
@asad.ali
Yes you’re right, I didn’t read properly. However I came here from a google search where I hoped to find the documentation I posted in the link, so maybe someone else happens to come here looking for the same thing I was and will see my post… who knows!
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.