Skip to content

Commit b07c601

Browse files
authored
Merge pull request #189 from CrOrc/patch-1
Fix astextplain for pdf files
2 parents 907d9ab + 8e25a2c commit b07c601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-extra/astextplain

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ case "$1" in
1818
docx2txt.pl "$1" -
1919
;;
2020
*.pdf | *.PDF)
21-
pdftotext -layout "$1" -enc UTF-8 - | sed "s/(\^M$)|(^\^L)//"
21+
pdftotext -layout -enc UTF-8 "$1" - | sed "s/(\^M$)|(^\^L)//"
2222
;;
2323
# TODO add rtf support
2424
*.rtf | *.RTF)

0 commit comments

Comments
 (0)