aboutsummaryrefslogtreecommitdiff
path: root/home/dot_local/share/bin/executable_pdfsize
diff options
context:
space:
mode:
Diffstat (limited to 'home/dot_local/share/bin/executable_pdfsize')
-rw-r--r--home/dot_local/share/bin/executable_pdfsize2
1 files changed, 2 insertions, 0 deletions
diff --git a/home/dot_local/share/bin/executable_pdfsize b/home/dot_local/share/bin/executable_pdfsize
new file mode 100644
index 0000000..14f940d
--- /dev/null
+++ b/home/dot_local/share/bin/executable_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" }'