From 6215fb974ba53267c5780680e5002cceee13f483 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 1 Nov 2020 15:57:59 +0100 Subject: [PATCH] Print pdf title from metadata --- .bin/pdftitle | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .bin/pdftitle diff --git a/.bin/pdftitle b/.bin/pdftitle new file mode 100755 index 0000000..03cadbe --- /dev/null +++ b/.bin/pdftitle @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +pdfinfo "$1" | head -n 1 | awk '{for (i=2; i