1, Suppose you have a pdf file named sample.pdf in ~/app folder.
$ docker pull bwits/pdf2txt
$ alias pdf2txt="docker run -ti --rm -v ~/app:/app pdf2txt"
$ pdf2txt sample.pdf > sample.txt
You will get the txt file named sample.txt in current folder.
2, You can directly run below command to convert the pdf file in current foler.
$ docker run -ti --rm -v $(pwd):/app pdf2txt sample.pdf > sample.txt
You will get the txt file named sample.txt in your current folder.
Content type
Image
Digest
sha256:50811f02e…
Size
13.5 MB
Last updated
almost 9 years ago
docker pull bwits/pdf2txt