HTML to PDF conversion

49 ビュー (過去 30 日間)
Avratanu Biswas
Avratanu Biswas 2019 年 8 月 19 日
編集済み: Andrey Kiselnikov 2019 年 8 月 19 日
Hi !
Is there a way to convert a .html file to .pdf using command lines?
Thanks in advance,
Avra

回答 (1 件)

Andrey Kiselnikov
Andrey Kiselnikov 2019 年 8 月 19 日
編集済み: Andrey Kiselnikov 2019 年 8 月 19 日
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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by