pdfvi - localbin - leot's localbin (~/bin)
(HTM) hg clone https://bitbucket.org/iamleot/localbin
(DIR) Log
(DIR) Files
(DIR) Refs
---
pdfvi
---
1 #!/bin/sh
2
3 #
4 # "Edit" a PDF file, extract all its text and open ${EDITOR} against it.
5 #
6
7 pdfvi_file="/tmp/.pdfvi"
8
9 if [ -z "$1" ]; then
10 echo "usage: $0 file"
11 exit 2
12 fi
13
14 pdfcat "$1" > ${pdfvi_file}
15 exec ${EDITOR} ${pdfvi_file}