MAC Convert a HTML to PDF

I’m trying to convert an HTML file to a PDF by using the Mac Terminal

I found a similar post and I did use the code they provided but I kept getting nothing,
I did not find the outputted file anywhere

./soffice --headless --convert-to pdf --outdir /home/user ~/Downloads/*.odt

I’m using mac 10.8.5

can someone show me a terminal code that I can use to convert HTML to PDF

Rather than ./soffice you may need to use the full path /Applications/LibreOffice.app/Contents/program/soffice. Also, your title reads “Convert a HTML” but you are use ~/Downloads/*.odt which would not seem consistent. Perhaps you meant ~/Downloads/*.html?