How can I remove header and footer when converting from calc to pdf headless?

I’m bulk converting office documents to pdf like so

soffice --headless --convert-to pdf
–outdir myfolder mycalc.xlsx

Some documents are including a header and footer on each page like below

Header:

mycalc.xlsx

Footer:

file:///home/user/path/to/file/mycalc.xlsx Page 1 of 6 01/08/2018

How can I remove this footer when I do the conversion?

By the way: Use the native OpenDocument formats (.ods for Calc) whereever possible.

I don’t know for sure, but I feel rather sure that there are no parameters modifying the --convert-to parameter to such tiny details. If you actually need to do it automatically, you will need to write some user code, and to organize the process down to the details.
This may require to create a helper document containing the code.
The next question would be then how the helper-code can access the complete command line the helper document was called with.