linux下如何代码实现word转换成html


在window下可以使用jacob,实现word转换成html,但是在linux下怎么实现呢?想问下大家是如何做的

Linux java

JK202 12 years, 5 months ago

使用abiword

   
  abiword --to=html xxx.doc
 

ubuntu下可直接sudo apt-get install abiword安装
除了html,还支持转换为以下格式:

abw Abiword XML format (zabw for gzip, bzabw for bzip2 compression)
dbk DocBook XML
doc Microsoft Word binary format
docx Office Open XML (newer Microsoft Word versions)
html Hypertext Markup Language
kwd KWord
odt OpenDocument Text
pdf Portable Document Format
rtf Rich Text Format
sxw OpenOffice.org Writer 1.0
txt Plain text

天然呆小米酒 answered 12 years, 5 months ago

Your Answer