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?

回答(1 个)

Ramtej
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:
  • 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!

类别

Help CenterFile Exchange 中查找有关 Reporting and Database Access 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by