Print pdf title from metadata

master
Hektor Misplon 2020-11-01 15:57:59 +01:00
parent b47a96a763
commit 6215fb974b
1 changed files with 3 additions and 0 deletions

3
.bin/pdftitle Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
pdfinfo "$1" | head -n 1 | awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}'