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 Kommentare

Andrä Carotta
Andrä Carotta am 25 Feb. 2020
This is exactly the same problem that I have. Do you already have a solution?
Bettina Pretterhofer
Bettina Pretterhofer am 14 Jul. 2021
Me too. solution?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jonas M.
Jonas M. am 3 Aug. 2021

0 Stimmen

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.

Kategorien

Mehr zu MATLAB Report Generator finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018b

Tags

Gefragt:

am 2 Feb. 2019

Beantwortet:

am 3 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by