Borrar filtros
Borrar filtros

Create pdf report from word template

4 visualizaciones (últimos 30 días)
Johnny Birch
Johnny Birch el 2 de Feb. de 2019
Respondida: Jonas M. el 3 de Ag. de 2021
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 comentarios
Andrä Carotta
Andrä Carotta el 25 de Feb. de 2020
This is exactly the same problem that I have. Do you already have a solution?
Bettina Pretterhofer
Bettina Pretterhofer el 14 de Jul. de 2021
Me too. solution?

Iniciar sesión para comentar.

Respuestas (1)

Jonas M.
Jonas M. el 3 de Ag. de 2021
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.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by