aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/pdfsize
blob: 14f940d916f4bf2bb44d5b3841c7e10beb36d037 (plain)
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" }'