diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-10-07 13:07:01 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-10-07 13:07:01 +0200 |
commit | 9daa97ba928bc4311f49104be111c11da589a545 (patch) | |
tree | 6d82587dce3346cb1f9f65bf4c93ae955db015cc | |
parent | 690eb9c9eb87bcc58f64ce26d11f738e1d54e7cc (diff) |
add script to get pdf size in mm
-rwxr-xr-x | .local/share/bin/pdfsize | 2 |
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" }' |