MATLAB Answers

HTML to PDF conversion

50 views (last 30 days)
Avratanu Biswas
Avratanu Biswas on 19 Aug 2019
Edited: Andrey Kiselnikov on 19 Aug 2019
Hi !
Is there a way to convert a .html file to .pdf using command lines?
Thanks in advance,
Avra

  0 Comments

Sign in to comment.

Answers (1)

Andrey Kiselnikov
Andrey Kiselnikov on 19 Aug 2019
Edited: Andrey Kiselnikov on 19 Aug 2019
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:
  1. Convert HTML to DOM https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.htmlfile-class.html
  2. Save your object as you whish: https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.document-class.html

  0 Comments

Sign in to comment.

Sign in to answer this question.