I want to convert an HTML file to an ODT (Writer file) via the (Linux) command line. This is easy and can be done like this:
libreoffice --headless --convert-to odt test.html
This will create a new ODT file called test.odt. That is great except that I cannot control the papersize of the new test.odt file.
I want to be able to set the papersize in the created ODT file. By default, on my system, it will be A4. But sometimes I want to convert it to US Letter. I do not want to change any other files on the system, I just want to know if I can do this with command line options.
How can I force the papersize in the command line when converting?