Headless convert XLSX to PDF

newbie question.

Using a command prompt in Windows 8.1 I need to convert an XLSX file to PDFs, but how?

I have used the GUI to open and then export to pdf and it worked nicely. I just need a way to do it from a command line.

I guess you are using Microsoft Excel. If so, you are asking your question in a wrong place. As for Windows, no Windows version has a cli tool to convert an *.xlsx file to anything! Since it has no cli tool to open/read them, it cannot convert them too. If you’re interested in cli, I suggest you download and install CygWin, to be able to use bash in Windows.

Not nice result withput working on it with calc but it works:

libreoffice --headless --convert-to pdf *.xlsx