Guest User

Untitled

a guest
Jan 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Page size: 624 x 312 pts
  2.  
  3. $ identify -verbose some.pdf | grep "Print size"
  4. Print size: 8.26389x11.6944
  5.  
  6. $ units -t '8.26389 inch' 'mm'
  7. 209.90281
  8.  
  9. /MediaBox [0 0 595 842]
  10. /MediaBox[0 0 595 842]
  11. /MediaBox[ 0 0 595.32 841.92]
  12.  
  13. cat test.pdf | egrep -ao "/MediaBox ?[ ?[0-9]+ [0-9]+ [0-9]+(.[0-9]+)? [0-9]+(.[0-9]+)?]" | head -1
Add Comment
Please, Sign In to add comment