Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I convert pdf to asciidoc using pandoc?

I am trying to convert pdf book to asciidoc document.I have tried the following command:

pandoc -s s.pdf -t asciidoc -o example28.txt

I got "Unknown reader" problem.

q@q-ABRA-A5-V12-1:~/Downloads$ pandoc -s s.pdf -t asciidoc -o example28.txt
pandoc: Unknown reader: pdf
Pandoc can convert to PDF, but not from PDF.

How can I fix this or is there another way to convert from pdf to asciidoc?

like image 790
my-lord Avatar asked Sep 05 '18 11:09

my-lord


1 Answers

Have you tried pdf2txt? https://pypi.org/project/pdfminer/ It's one of the tools provided there.

like image 165
tidel Avatar answered Sep 23 '22 16:09

tidel