• I think that

    Making the Web is like playing a game. Standard, Accessibility and Usability are only few rules.
    No game is awesome if you don't follow the rules.

    International Webmasters Association

  • Subscribe to my blog via email

    Insert here your e-mail address and you will receive a message when a new post will come.

  • Home
  • /Software
  • /How to convert HTML page to ODT or DOC document

How to convert HTML page to ODT or DOC document

Just few days ago I’ve explained how to use LibreOffice in headless mode.

Today I will describe how to convert an HTML page into an ODT, PDF and DOC document.

The way is more simple than describe it.

I suppose you have understand the concepts on how to use LibreOffice in headless mode.

The command to use to make HTML page to be converted from HTML to ODT is:

root@centos:/$ libreoffice --headless --convert-to odt mywebpage.html

As you can state, the way is really simple and you can imagine how is “hard” to convert the web page into a PDF format…

root@centos:/$ libreoffice --headless --convert-to pdf mywebpage.html

Woah!!! Really hard, isn’t it? :-)