2025-02-23 18:50:01 EST

M: How can I figure out the DPI of a PDF? Remember, on fedora Linux

G: You can determine the DPI of a PDF in Fedora Linux using pdfimages (from poppler-utils) or identify (from ImageMagick).

Method 1: Using pdfimages

pdfimages extracts images from the PDF and provides their resolution. Run:

pdfimages -list file.pdf

This will output a table including x-ppi and y-ppi, which are the DPI values.

Method 2: Using identify (ImageMagick)

If the PDF consists of rasterized pages, you can check the DPI by converting it to an image:

identify -density 300 file.pdf

Replace 300 with your assumed DPI. The output will include resolution details.

Would you like to check DPI for embedded images or the entire document as a whole?