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

4 ビュー (過去 30 日間)
Vikas Shivaprasad
Vikas Shivaprasad 2022 年 8 月 3 日
回答済み: Ramtej 2023 年 9 月 13 日
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 Center および File ExchangeReporting 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