daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top