MATLAB Answers


It's possible to use pdf extensiont in Document Class for Matlab release 2015 b? How?

* import mlreportgen.dom.*;
d = Document('mydoc','pdf');
but it doesn't work on Matlab 2015b
The error is:
Error using mlreportgen.dom.Document
Invalid format: "pdf"
How can I use 'pdf' extension in Matlab 2015b for Document class?


Sign in to comment.

1 Answer

Answer by Joachim Schlosser on 29 Mar 2016
 Accepted Answer

The direct PDF creation including TOC was added in R2016a.
To generate PDF prior to R2016a, create the document with 'docx' instead of 'pdf' and then at the end use rptview(reportPath,'pdf') to convert to PDF.


Please mark answer as accepted so it is no longer shown as open.

Sign in to comment.