Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Page breaksStringNoautoHow 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).
SessionStringNowordSession name.

Outputs​

OutputTypeWhat it is
pagesNumberNumber of pages.
counted_fromStringlayout (Word's saved layout) or breaks (stored page and section breaks).