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? :-)