latex - How to extract the size of PDF? (Dimensions, not file size) -


i have many hundreds of small pdf images (created in adobe illustrator) inserted latex document. need know size of these images in real-world dimensions (e.g. 20mm x 14mm), or @ least latex can understand.

is there command line tool can produce these dimensions? (i running mac os x.)

a second best solution way latex extract dimensions.

[i have tried pdftk, data dump command seems tell me number of pages (1).]

use pdfinfo or pdfinfo.exe (from xpdf suite):

pdfinfo ^    -f 1 ^    -l 10 ^    -box ^    20-pages.pdf 

this extract page sizes , box info (mediabox, cropbox, bleedbox, trimbox, artbox) pages 1 - 10 of pdf.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -