diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2013-08-04 11:28:01 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2013-08-04 11:28:01 -0400 |
| commit | aca17d11b107614915057f15e8cf0e828d4e3381 (patch) | |
| tree | 7c5dc2ffb2c0cae5157a6033e10d3cea3aee624e | |
| parent | 8431ad45020540c771fbb1a80a63aca07fcf586a (diff) | |
| download | ocr-layer-curation-aca17d11b107614915057f15e8cf0e828d4e3381.tar.gz | |
script to extract djvutext from a document
| -rwxr-xr-x | extract_pages.sh | 7 |
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 |
