Get page count
Count the document's pages, from the page layout Word saved in the file or from its page and section breaks.
Command in the Word toolkit · id ooa.word/get_page_count · 2 inputs, 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Page breaks | String | No | auto | How pages are counted: auto uses the page layout Word saved in the file when there is one, else the page and section breaks stored in it; layout uses only Word's saved layout; breaks uses only the stored breaks (pages Word fills up on its own are then not counted). |
| Session | String | No | word | Session name. |
Outputs
| Output | Type | What it is |
|---|---|---|
| pages | Number | Number of pages. |
| counted_from | String | layout (Word's saved layout) or breaks (stored page and section breaks). |