D
D
Denis Lysenko2014-10-05 15:38:22
ruby
Denis Lysenko, 2014-10-05 15:38:22

How to convert XLS to HTML from Ruby?

There is a template file in XLS format (well, or you can make a DOC). You need to substitute data from the database into it and give the client a finished document in PDF format. What is the best way to do this?
While I know one option, you can substitute the data directly into XLS (although this will be wildly inconvenient) and then convert this XLS immediately to PDF via LibreOffice via the console.
But I would like a more flexible solution. For example, first convert everything to HTML, substitute data there, and then generate PDF from HTML. What options might be here for Ruby on Rails?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2014-10-05
@Taraflex

Make up the template in html and you can export it.
wkhtmltopdf.org

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question