Software Workshop

doc 파일

apt install wv
wvText "doc 파일" "text 파일"
wvHtml "doc 파일" "html 파일"

docx 파일

apt install docx2txt
docx2txt "docx 파일" "text 파일"
apt install libreoffice
soffice --convert-to "html:XHTML Writer File:UTF8" "docx 파일"

rtf 파일

apt install unrtf
unrtf --text "rtf 파일" > "text 파일"
unrtf --html "rtf 파일" > "html 파일"

hwp 3.x 파일

apt install libreoffice
soffice --convert-to "html:XHTML Writer File:UTF8" "hwp 파일"

--headless 옵션을 붙여야 할 수도 있다.

hwp 5.x 파일

pip install pycrypto pyhwp
hwp5html "hwp 파일"
hwp5txt "hwp 파일"

epub 파일

apt install calibre
ebook-convert "epub 파일" "text 파일" --txt-output-formatting=plain 
apt install pandoc
pandoc "epub 파일" -o "html 파일"