How can I change the page numbering in a PDF report generated by Matlab 2017a?

10 ビュー (過去 30 日間)
Bog601
Bog601 2017 年 5 月 18 日
コメント済み: Rahul Singhal 2017 年 11 月 2 日
How can I change the page numbering in a PDF report generated by Matlab 2017a?
Currently running a default; page numbers are displayed at the bottom - "x" where x is the current page number; I want to change it so that it displays "x of y" where x is current page, and y is total number of pages.
This is an automatic report, created by a predecessor, and I'm trying to just edit. I don't want to start anything from scratch. I also have close to 0 experience with the report generator. I've attached a picture with the current status of my report explorer.
Thanks

回答 (1 件)

Paul Kinnucan
Paul Kinnucan 2017 年 5 月 23 日
You can edit the report template to include the following markup in the page footer template:
<p><page/> of <numpages/></p>
  2 件のコメント
Bog601
Bog601 2017 年 5 月 23 日
Hi Paul,
I'm wondering how to edit the page footer template in the report template? I used the stock report generator, and I'm not entirely sure where to edit the templates.
Thanks, Bogdan
Rahul Singhal
Rahul Singhal 2017 年 11 月 2 日
First create a custom template by copying the default template and then edit it. See https://www.mathworks.com/help/rptgen/ug/create-a-custom-html-template.html
To locate the document part template name that defines the footer, see template-name attribute for the pfooter tag. Then locate and update that document part template as specified by Paul. This link might help: https://www.mathworks.com/help/rptgen/ug/add-page-footers-and-headers.html#bu710dp-1

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeReport Generator Creation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by