mlreportgen.dom.NumPages Class
Namespace: mlreportgen.dom
Create placeholder for number of document pages
Description
Use an object of the mlreportgen.dom.NumPages class to create a placeholder for the number of pages in a document. This object
applies only to Word and PDF output. For Word output, opening a Word document causes
Word to replace this object with the number of pages in the document. For PDF output,
the DOM API replaces this object with the total number of pages when writing the
document.
To see what DOM objects you can append an mlreportgen.dom.NumPages object to,
see Append mlreportgen.dom.NumPages object to DOM class object.
This class is only compatible with these MATLAB® Report Generator™ output types:
"docx""pdf""pdfa"(since R2025a)
The mlreportgen.dom.NumPages class is a handle class.
Creation
Description
creates an
object for the total number of pages in the report.num = NumPages
Properties
Methods
Examples
More About
Version History
Introduced in R2016a