I want to know if the PDF file is composed of scanned images or electronically generated.
In order to do this, we decided to judge it as a scanned image document if the following conditions are satisfied.
Each page of the PDF consists of one image
The images are very similar to the size of the MediaBox.
Using this, we can see that the width and height of the XImage object can be obtained in pixels, and the width and height of the MediaBox can be obtained in point.
If the DPI is fixed (200 for example), it can be converted to (MediaBox.getWidth () / 72) * 200, but we could not find any clue to calculate it.
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.