- 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?
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Ramtej
on 13 Sep 2023
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 Comments
See Also
Categories
Find more on Reporting and Database Access 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!