Convert office file to landscape using CLI

I am looking for a solution, where i need to convert .docx, .xlsx or .ppt to pdf. But before converting i need to change the file from potrait mode to landscape mode using libreoffice --headless mode CLI ( command line interface).
I have looked for lots of solutions online, but did not get any proper help.

Well so much for that ,totally i