Page Layout
You can specify formatting by using Microsoft® Word, PDF, and HTML template formatting styles.
Classes
Topics
- Create Page Layout Sections
Create report sections. Divide a Word or PDF report into sections with different layouts.
- Create Page Footers and Headers
Create footers and headers for a report.
- Customize the Page Size and Margins of a Report Programmatically
Use Report API objects to customize page dimensions.
- Set Page Margins in a Word Report
Define margins and header, footer, and gutter sizes for a DOCX page.
- Customize the Page Size and Margins of a Word Report Using Templates
Modify the page dimensions in the Word templates for the title page, table of contents, and chapter reporters.
- Set Page Margins in a PDF Report
Define margins and header, footer, and gutter sizes for a PDF page.
- Customize the Page Size and Margins of a PDF Report Using Templates
Modify the page dimensions in the PDF templates for the title page, table of contents, and chapter reporters.
- Style Sheet Cells for Headers and Footers
Use style sheet cells to manage headers and footers in reports.
- Create a Report with Landscape Pages
Generate a report that has landscape pages.
- Create a Report with Portrait and Landscape Pages
Generate a report that has both portrait and landscape pages.
- Side-by-Side Figures
Arrange MATLAB figures next to each other on a page.
- Side-by-Side Images
Arrange images next to each other on a page.
- Scale Image to Fit Page
Use an
mlreportgen.dom.ScaleToFit
object to make an image fit on a page. - Center Figure Snapshot on a Page
Center a figure snapshot on a landscape page for PDF and Word reports.
- Center Image on a Page
Center an image using an invisible 1-by-1 table that has the same size as the page body.
- Center Formal Image in a PDF Report
Center a formal image using an invisible 1-by-1 table that has the same size as the page body.
- Configure PDF Fonts
For PDF output, MATLAB® Report Generator™ comes configured with default fonts: a serif, a sans serif, and dingbats.
- Report Formatting Approaches
Format a report by using style sheets, format objects, or format properties.
- Use Style Sheet Styles
A style is a collection of formats that define the appearance of a document object, such as a paragraph, table, or list.
- Format Inheritance
The DOM API allows you to use template-based styles and format object-based styles (or equivalent format properties) to specify the appearance of an object.