A
A
Alexander2015-08-24 00:51:13
linux
Alexander, 2015-08-24 00:51:13

How to convert xls/xlsx to html using Ruby/Linux?

There is a web application on rails. How to convert xls/xlsx to html using Ruby (or Linux OS) so that it can be displayed correctly on a web page?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valery Ryaboshapko, 2015-08-24
@valerium

libreoffice --headless --convert-to html file.xlsx
LibreOffice and OpenOffice are completely interchangeable.

R
Roman Mirilaczvili, 2015-08-24
@2ord

1. gem roo
2. xls2csv (catdoc package), xlsx2csv + gem FasterCSV .
3. The ssconvert utility as part of the gnumeric package (requires Xorg installed).
As for text documents, definitely pandoc .

If you need to convert files from one markup format into another, pandoc is your swiss-army knife. Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, TWiki markup, OPML, Emacs Org-Mode, Txt2Tags, Microsoft Word docx, EPUB, or Haddock markup to
... (many different formats)
Written in Haskell. The easiest way is to take a ready-made binary and not build it yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question