From 9daa97ba928bc4311f49104be111c11da589a545 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 7 Oct 2023 13:07:01 +0200 Subject: add script to get pdf size in mm --- .local/share/bin/pdfsize | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 .local/share/bin/pdfsize 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" }' -- cgit v1.2.3