Create pdf report from word template

Is it possible to create a report in pdf format from a word template using report generator in Matlab R2018b?
The code I am using is below and creates the word report, but I would like to save it in pdf format instead:
import mlreportgen.dom.*
D = Document('From Template','docx','Template.dotx');
open(D);
moveToNextHole(D)
append(D,'Hello World')
close(D);

2 件のコメント

Andrä Carotta
Andrä Carotta 2020 年 2 月 25 日
This is exactly the same problem that I have. Do you already have a solution?
Bettina Pretterhofer
Bettina Pretterhofer 2021 年 7 月 14 日
Me too. solution?

サインインしてコメントする。

回答 (1 件)

Jonas M.
Jonas M. 2021 年 8 月 3 日

0 投票

Are there any new information on this topic? In particular, a platform independent solution?
The only solution I have found is:
docview('docFile.docx','convertdocxtopdf','closeapp');
However, this requires Word and according to the documentation it is only possible on Windows platforms.

製品

リリース

R2018b

タグ

質問済み:

2019 年 2 月 2 日

回答済み:

2021 年 8 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by