Polish pull request

This commit is contained in:
Raman Gupta 2018-11-01 12:09:32 -04:00
parent 573b1df2da
commit 111a8e7572
3 changed files with 6 additions and 3 deletions

View File

@ -78,7 +78,10 @@ OUTPUT
-l, --outputlist <outputfile-1...outputfile-n> Output to named files for each scanned page, can be used with append
```
## Contributors
## Author
* [Raman Gupta](https://github.com/rocketraman/)
## Contributors
* [Stefan Armbruster](https://github.com/sarmbruster/)

1
scan
View File

@ -25,6 +25,7 @@ CROP=0
DESKEW=0
VERBOSE=0
SKIP_EMPTY_PAGES=0
TMP_DIR=`mktemp -d`
trap "rm -rf $TMP_DIR" 0

View File

@ -71,7 +71,6 @@ process_page() {
fi
log ""
log "-------------------------------------------------------------------------------"
log "Converting image data to pdf..."
if [ $SEARCHABLE -eq 1 ]; then
log "Converting image data to searchable pdf..."
tesseract $IMAGE_DIR/$PP_PREFIX$IMAGE_FILE $IMAGE_DIR/${IMAGE_FILE%.*} -l $LANGUAGE pdf | logstdout
@ -90,7 +89,7 @@ process_page() {
pnmtops $PNMVERBOSE $PAGEOPTS $IMAGE_DIR/$PP_PREFIX$IMAGE_FILE | ps2pdf $PS2PDF_OPTS - > $IMAGE_DIR/${IMAGE_FILE%.*}.pdf | logstdout
fi
else
log "skipping empty page $IMAGE_FILE"
log "Skipping empty page $IMAGE_FILE with white percentage $PERCENTAGE_WHITE"
fi
status=$?