hmkasce.blogg.se

How to find dpi of pdf file
How to find dpi of pdf file





  1. #How to find dpi of pdf file pdf
  2. #How to find dpi of pdf file free

You don't need to follow through with uploading the file to them after getting the report.

#How to find dpi of pdf file pdf

You install an application that preflights PDFs, generates a report if errors are found, and would then allow you to upload the PDF directly to them. I did google it out of curiosity, and came across a few printing companies that make use of an uploading service called PDFpreflight. None of the above are ideal methods, but they would technically "work". Place the PDF in InDesign, then import all the images and position/size them on top of the same images in the PDF and let InDesign tell you if they are sufficiently sized. Or, if you have Photoshop, import the PDF and choose to open the images present in the PDF.Then play a tedious game of "is the imported image bigger or smaller than it appears on the rastered page?" Then import it again and only choose the images present in the PDF. If you have Photoshop, import the PDF and raster the entire page(s) at 300dpi.If you have Illustrator, you can open the PDFs in there and click on each and every image the individual image resolutions.Here is a link to the PDF ( "my.pdf") I used to demonstrate the output of the command above.

#How to find dpi of pdf file free

Now, if a command line tool cannot be re-purposed for your goal: the Poppler library which is the base for the tool shown above certainly is Free ( 'free as in liberty', as well as 'free as in beer'). While page 3 shows it with a PPI of 84 in horizontal (X) direction and 115 PPI in vertical (Y) direction. shows it with a PPI of 151 in both directions, shows it with a PPI of 320 in both directions, However, the same image appears on different pages in different resolutions (given as PPI - pixels per inch - not DPI): The image's width is 697 pixels, its height is 1238 pixels, its image depth (bits per color) is 8, its colorspace is gray its number of color channels/components is 1, its compression scheme is jpeg, its bytesize (as embedded) is 142K, its compression rate is 17% (as indicated by columns 4-9 and 14+15 headed width, height, color, comp, bpc, size and ratio). This means the PDF has only one distinct object defined, but showing it three times (i.e., the image is embedded only once, but appears on 3 pages). The PDF object IDs for all three images are identical: 16 0 (as indicated by columns 11+12, headed object + ID). There are three images on the three pages 2-4 (as indicated by columns 1+2, headed page and num). Here is the output for the above command, using an example PDF file I prepared specifically for this question (scroll horizontally to see all columns): page num type width height color comp bpc enc interp object ID x-ppi y-ppi size ratioĢ 0 image 697 1238 gray 1 8 jpeg no 16 0 320 320 142K 17%ģ 1 image 697 1238 gray 1 8 jpeg no 16 0 151 151 142K 17%Ĥ 2 image 697 1238 gray 1 8 jpeg no 16 0 84 115 142K 17% The output of above example command shows all images in the page range from 2 ( f irst page to show) to 4 ( l ast page to show). Recent Poppler versions let you use the -list option: pdfimages -list -f 2 -l 4 my.pdf However, you need a recent version pdfimages that is based on the Poppler library ( NOT the 'pdfimages' that is based on XPDF!) You can use a command line tool to get the info you need: pdfimages.







How to find dpi of pdf file