Compare commits
No commits in common. "54631a44cd6217d9190e94ebe5003cbd20e54271" and "ccbb6246cd4ecb8953f2de5e67a925b410e6d369" have entirely different histories.
54631a44cd
...
ccbb6246cd
31
README.md
31
README.md
@ -1,32 +1,3 @@
|
|||||||
# scantopdf
|
# scantopdf
|
||||||
|
|
||||||
A quick bash script that wraps around tesseract and allows tesseract to work on pdfs of scans
|
A quick bash script that wraps around tesseract and allows tesseract to work on pdfs of scans
|
||||||
|
|
||||||
## Installation
|
|
||||||
To install this script, just paste these commands in the terminal
|
|
||||||
```
|
|
||||||
git clone https://git.karma-riuk.com/karma/scantopdf /tmp/scantopdf
|
|
||||||
sudo cp /tmp/scantopdf/scantopdf /usr/local/bin/scantopdf
|
|
||||||
sudo chmod 755 /usr/local/bin/scantopdf
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
To use this script, follow this steps
|
|
||||||
1. Open a terminal
|
|
||||||
2. Go the location of the file you want to "convert" with the following command
|
|
||||||
```
|
|
||||||
cd <path>
|
|
||||||
```
|
|
||||||
where `<path>` is the location of the **folder** where lies the file to convert.
|
|
||||||
3. Use the command `scantopdf` and give it, as an argument, the file you want to
|
|
||||||
convert. **If the file name contains spaces, surround it with quotes `"`**
|
|
||||||
```
|
|
||||||
scantopdf "I Promessi Sposi.pdf"
|
|
||||||
```
|
|
||||||
Optionally you can give it the `-v` flag (before the name of the file), to make
|
|
||||||
the script verbose, so instead of doing its job without saying anything, it will
|
|
||||||
print each step that it's doing.
|
|
||||||
```
|
|
||||||
scantopdf -v "La Divina Commedia.pdf"
|
|
||||||
```
|
|
@ -40,14 +40,11 @@ usage () {
|
|||||||
cat << EOF
|
cat << EOF
|
||||||
scantopdf - A quick bash script that wraps around tesseract to make book scans "editable"
|
scantopdf - A quick bash script that wraps around tesseract to make book scans "editable"
|
||||||
|
|
||||||
Usage: scantopdf [-v|--verbose] file.pdf
|
Usage: scantopdf [-v|--verbose] input.pdf
|
||||||
scantopdf [-v|--verbose] "file with spaces.pdf"
|
|
||||||
scantopdf [-h|-?|--help]
|
scantopdf [-h|-?|--help]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
file.pdf the file you want to make editable (make
|
input.pdf the file you want to make editable
|
||||||
sure to put quotes " around the file
|
|
||||||
name if the filename has spaces)
|
|
||||||
|
|
||||||
Optional arguments:
|
Optional arguments:
|
||||||
-v, --verbose print each step the script passes through
|
-v, --verbose print each step the script passes through
|
||||||
|
Loading…
Reference in New Issue
Block a user