A page is one side of a sheet in a document, or one screen of a digital document. In file metadata, the Pages field gives the number of pages that a document has. The field is not the same as a .pages file, which is a document from Apple's Pages app.
Which files carry it
Each format keeps the page count in its own place:
- PDF files list every page in a page tree. Its top entry has a
Countkey with the total, which ExifTool shows as Page Count. - DOCX files can store a Pages element in their document properties. The Office Open XML standard, ISO/IEC 29500, defines it as the total number of pages, if applicable.
- Older Word DOC files can store it in the Summary Information property set, where it is called Number of Pages.
- OpenDocument text files such as ODT can list a
meta:page-countattribute among their document statistics. - PostScript and EPS files that follow Adobe's Document Structuring Conventions can carry a Pages comment in their header.
- Multi-page TIFF images, such as faxes, can carry a PageNumber tag (
0x0129) with 2 numbers.
E-books in EPUB format usually have no fixed page count. By default, the text of an EPUB reflows to fit the screen.
The number of pages you see then depends on your device and font size. Some EPUB books add a page list that links to fixed page breaks, such as those of a printed edition.
What the value looks like
The Pages field holds a whole number with no unit. A PostScript header can hold a placeholder instead. These examples come from the format specifications:
3, the Count of the example page tree in Adobe's PDF Reference45, the value in an example Pages comment in Adobe's PostScript conventions0, for a PostScript file that draws no page, such as an illustration made for another document(atend), the placeholder, which means that the number comes later, in the trailer at the end of the file
In a TIFF PageNumber tag, the first number is the page number of that image, counted from 0. The second number is the total number of pages, or 0 when the total is not available.
Where the value comes from
In a PDF, the count is part of the file structure. The page tree leads to every page, and its Count key gives the number of those pages.
In Word files, the count is a stored property, next to the word count and the character count. OpenDocument files store it the same way, among their document statistics. A metadata reader such as ExifTool reads this stored number.
Why it matters
The page count tells you how long a document is before you open it. It also lets you check that a scan or an export contains every page you expect.
The count does not tell you how large the pages are. For that, see page size.
In PostScript, the count is the number of pages that the document itself draws. Print settings, such as the number of copies, can raise or lower the number of printed pages.
What a .pages file is
A .pages file is a document made with Pages, the word processor in Apple's iWork apps for macOS and iOS. It can be a word-processing document, such as a letter, or a page layout document, such as a poster.
Its registered media type is application/vnd.apple.pages. The file is a ZIP archive, and no specification of the format is publicly available.
To use the document in other programs, you export it from Pages, for example to PDF, Word, or EPUB. An exported PDF has its own page tree, so it carries a page count.