aboutsummaryrefslogtreecommitdiffstats
path: root/extract_pages.sh
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2013-08-04 11:28:01 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2013-08-04 11:28:01 -0400
commitaca17d11b107614915057f15e8cf0e828d4e3381 (patch)
tree7c5dc2ffb2c0cae5157a6033e10d3cea3aee624e /extract_pages.sh
parent8431ad45020540c771fbb1a80a63aca07fcf586a (diff)
downloadocr-layer-curation-aca17d11b107614915057f15e8cf0e828d4e3381.tar.gz
script to extract djvutext from a document
Diffstat (limited to 'extract_pages.sh')
-rwxr-xr-xextract_pages.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/extract_pages.sh b/extract_pages.sh
new file mode 100755
index 0000000..c49a0c4
--- /dev/null
+++ b/extract_pages.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+npages=$(djvused -e 'n' $1)
+
+for i in $(seq 1 $npages); do
+ djvused -e "select $i;output-txt" $1 >page${i}.djvutxt
+done