How can I embed RTF or HTML DocBlock contents in PDF reports generated from Simulink models using MATLAB Report Generator?
5 views (last 30 days)
Show older comments
I have DocBlocks in my Simulink model with a document type of "RTF" or "HTML". When generating a PDF report from the model using MATLAB Report Generator, the DocBlocks appear as links in the generated document. Is it possible to embed the actual contents of the DocBlocks in the generated report rather than insert links to the corresponding files?
Setting the document type to "Text" is not an option since I would like to be able to include formatted text, tables and possibly images in the documentation. Exporting to a format other than PDF might be acceptable, but I would also like the text in block diagram images to be searchable and I am not sure if this is possible with formats other than PDF.
1 Comment
Answers (1)
Paul Kinnucan
on 9 Feb 2017
It is not possible to embed the HTML content of a DocBlock in a PDF report.
It is possible to embed the RTF content of a DocBlock in a PDF report, starting in R2014b, using the Documentation component of the Report Explorer.
To do this:
- Use the Report Explorer to insert a Documentation component in a Block Loop in your report setup.
- Select PDF (from Word template) as your report's output type.
Selecting this output type causes the Report Explorer to generate your report as a Word document containing the RTF DocBlock content and then open and save the Word report as a PDF document.
0 Comments
See Also
Categories
Find more on Simulink Report Generator in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!