Hi, report generator allows to save results as a *.pdf file:
But if you still need to convert HTML to PDF by commands you can follow this way:
- Convert HTML to DOM https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.htmlfile-class.html
- Save your object as you whish: https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.document-class.html