Simulink report generation to remove blank space after each screenshot of block?

2 views (last 30 days)
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?

Answers (1)

Ramtej
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:
  • 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.
Refer to below documentation for detailed description on how to generatre custom templates of your choice:
Hope this helps!

Categories

Find more on Reporting and Database Access in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!