bwits/pdf2txt

By bwits

Updated over 7 years ago

Convert PDF to plain text file

Image
1

1.5K

convert pdf to plain text file

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.

Docker Pull Command

docker pull bwits/pdf2txt