필터 지우기
필터 지우기

Create pdf report from word template

조회 수: 4 (최근 30일)
Johnny Birch
Johnny Birch 2019년 2월 2일
답변: Jonas M. 2021년 8월 3일
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일
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

Community Treasure Hunt

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

Start Hunting!

Translated by