> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Multi-page FlexiLayout

> Build FlexiLayouts for multi-page documents in ABBYY FlexiLayout Studio, setting page count limits and searching elements across the whole document.

ABBYY FlexiLayout Studio lets you create FlexiLayouts for multi-page documents. It treats the document as a single whole and looks for elements regardless of which pages they are on.

In the [FlexiLayout properties](/flexi-capture/fls/template/ftemplate-properties) you must specify the minimum and maximum possible numbers of pages in the document. You can specify the exact number of pages in the document using the [`SetPagesCount` function](/flexi-capture/fls/language/global-functions) of the FlexiLayout description language.

## Related topics

* [Use Header and Footer elements to detect the beginning and the end of a document](/flexi-capture/fls/template/header-footer)
* [Match a multi-page FlexiLayout](/flexi-capture/fls/template/multipage-matching)
* [Support for multi-page documents in ABBYY FlexiLayout Studio](/flexi-capture/fls/template/multipage-possibility)
