ITextSharp Receives DPI PDF

How can I get the DPI PDF that I am reading from my hard drive in iTextSharp?

+2
c # dpi itextsharp
source share
2 answers

PDF does not necessarily use DPI in its definitions. PDF allows the creator of the document to define its own user coordinate space, which may or may not be matched with anything similar to Dots per inch.

+5
source share

Check How to calculate the correct image size in pdf using itextsharp?

UserUnit PDF should indicate the default size of custom spatial units that are a multiple of 1/72 of an inch.

By default, the size of the device in the user's default space (1/72 inch) is about the same as the dot, a unit commonly used in the printing industry. However, this is not quite the same; There is no universal definition of a point.

Conceptually, the user space is an infinite plane. Only a small part of this plane corresponds to the image area on the output device: the rectangular area defined in the CropBox entry in the page dictionary. The default user space area that is viewed or printed may differ for each page.

Coordinates in a user space (as in any other coordinate space) can be specified as integers or real numbers, and the size of an element in a user space by default does not limit the position of any arbitrary grid. The resolution of coordinates in user space is in no way related to the resolution of pixels in device space.

+4
source share

All Articles