Skip to content

Commit b09fa06

Browse files
Bill WBill W
Bill W
authored and
Bill W
committed
Update README.md
1 parent 691104c commit b09fa06

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

pdf2txt/alpine/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
[![](https://badge.imagelayers.io/bwits/pdf2txt:latest.svg)](https://imagelayers.io/?images=bwits/pdf2txt:latest 'Get your own badge on imagelayers.io')
44

5-
Suppose you have a pdf file named `sample.pdf` in your current folder.
5+
1, Suppose you have a pdf file named `sample.pdf` in ~/app folder.
66
```
7-
docker pull bwits/pdf2txt
8-
docker run -ti --rm -v $(pwd):/app pdf2txt /app/sample.pdf > sample.txt
7+
$ docker pull bwits/pdf2txt
8+
$ alias pdf2txt="docker run -ti --rm -v ~/app:/app pdf2txt"
9+
$ pdf2txt sample.pdf > sample.txt
910
```
10-
You will get the txt file named `sample.txt` in your current folder.
11+
You will get the txt file named `sample.txt` in ~/app folder.
1112

13+
2, You can directly run below command to convert the pdf file in current foler.
14+
```
15+
$ docker run -ti --rm -v $(pwd):/app pdf2txt sample.pdf > sample.txt
16+
```
17+
You will get the txt file named `sample.txt` in your current folder.

0 commit comments

Comments
 (0)