MATLAB Answers

How to start Header from a later page?

5 views (last 30 days)
John
John on 8 Oct 2020
Commented: John on 9 Oct 2020
Using mlreportgen.dom.PDFPageHeader to generate the header, works fine.
However, the first two pages are different and don't need the header.
How to start Header from page 3 or a later page?
Thanks.

Accepted Answer

Rahul Singhal
Rahul Singhal on 9 Oct 2020
Hi John,
For a PDF Page layout, you can define upto 3 types of page headers: one for first page, one for even pages, and one for odd pages. See https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.pdfpagelayout-class.html#bu6wf3m-1-PageHeaders
PDFPageHeader class has a PageType property which defines the type of pages that header appears on.
Thanks,
Rahul
  5 Comments
John
John on 9 Oct 2020
Thank you, Rahul!
By editing my existing script which has slightly different style, I learned more about the pagelayout, margin, footer, header, etc...
Thanks again!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by