summaryrefslogtreecommitdiff
path: root/pdf_dump_first_page.sh
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-11-25 22:20:29 +0100
committerJules Laplace <julescarbon@gmail.com>2018-11-25 22:20:29 +0100
commit4d0fc39c2a7a2974a3e5402990010dcd3b7bd596 (patch)
tree53a31fe94dd8c9ec1784b2cf323d3885148f0faf /pdf_dump_first_page.sh
parente1fa31bfd6a938341c3a8a63f238d0952cf4b429 (diff)
mv
Diffstat (limited to 'pdf_dump_first_page.sh')
-rw-r--r--pdf_dump_first_page.sh19
1 files changed, 0 insertions, 19 deletions
diff --git a/pdf_dump_first_page.sh b/pdf_dump_first_page.sh
deleted file mode 100644
index 2749915d..00000000
--- a/pdf_dump_first_page.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-for i in datasets/s2/pdf/*/*/*.pdf
- do
- OUTPUT="${i%.*}.txt"
- if [[ ! -e $OUTPUT ]]
- then
- pdf2txt.py -p 1 $i > $OUTPUT
- echo $OUTPUT
- else
- if [ -s $OUTPUT ]
- then
- echo "found $OUTPUT"
- else
- echo "rm empty $OUTPUT"
- rm -f $OUTPUT
- fi
- fi
- done