aboutsummaryrefslogtreecommitdiff
path: root/.local/share
diff options
context:
space:
mode:
Diffstat (limited to '.local/share')
-rwxr-xr-x.local/share/bin/pdfsize2
1 files changed, 2 insertions, 0 deletions
diff --git a/.local/share/bin/pdfsize b/.local/share/bin/pdfsize
new file mode 100755
index 0000000..14f940d
--- /dev/null
+++ b/.local/share/bin/pdfsize
@@ -0,0 +1,2 @@
+#!/bin/sh
+pdfinfo -box "$1" | awk '/^Page size:/ { print $3 * 2.54 / 72.0 * 10 "mm" " x " $5 * 2.54 / 72.0 * 10 "mm" }'