- Open the Report Generator app. In the model diagram window, in the "Apps" gallery, click "Report Generator".
- Select "Edit Document Conversion Template" under "Tools" menu in Report Explorer.
- Select "Default PDF Template" in the right pane and copy the template and save it as custom template.
- Select the custom template you have created and edit "margin" property of figure in the stylesheet.
- Set "Output type" to "Direct PDF (From Template)" and "Output Template" to custom template under the "Report Options" before generating the report.
Simulink report generation to remove blank space after each screenshot of block?
4 次查看(过去 30 天)
显示 更早的评论
Hello, I am using simulink report generation tool to generate pdf reports. I am getting a huge file for each simulink model. The screenshot of model is generated in each page, I need to remove the blank white spaces after each block to reduce the file in other words start the next section from the same page. Is there any way to reduce the blank spaces in the pdf? A huge pdf I mean 1000s pages. I would like to break the page and continue the section from there instead of a new page for each block. Can anybody suggest or advice?
0 个评论
回答(1 个)
Ramtej
2023-9-13
Hi Vikas,
I understand that you are trying to reduce the blank spaces in the generated report.
You need to create a custom template and edit its style sheet. The Report Explorer in MATLAB allows you to use templates to format your reports.
Follow the below steps to generate your custom template:
Refer to below documentation for detailed description on how to generatre custom templates of your choice:
Document Generated Code with Simulink Report Generator: https://in.mathworks.com/help/rtw/ug/simulink-report-generator-report.html#bsurgpf-13
Edit Style Sheet Data Items: https://in.mathworks.com/help/rptgen/ug/editing-stylesheet-data-items.html
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Reporting and Database Access 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!