Inventory

Page Counts

Counts the pages in PDFs and multi-page TIFFs and the slides in PowerPoint files exactly, and reports the page count Word stored when a document was last saved.

Free Command line: page-counts Version 1.0

Page Counts gives a page figure for each document, and says where the figure came from. PDF pages are counted from the PDF's page tree, TIFF pages from the image's pages, and PowerPoint slides from the presentation's slide list. These are exact.

Word documents are different: Word only knows the true page count after laying the document out, so the tool reports the count Word saved in the document properties. Treat it as an estimate. The file type is decided by content rather than extension, so a PDF renamed .docx is still counted as a PDF.

Use it when

How to run it

  1. Choose the folder of documents as Input, and an Output folder outside it.
  2. Leave Extensions empty to count PDFs, Word (.docx, .docm, .dotx, .dotm), PowerPoint (.pptx, .pptm, .potx, .potm, .ppsx, .ppsm) and TIFF files, or narrow it.
  3. Click Run.
  4. Use Open report and check the CountSource and Notes columns.

Settings

Every setting has the same help beside it in the app. On the command line, pass each as --name value; ltk help page-counts lists them.

Common settings

SettingWhat it doesType and default
Input required
--input
Folder (or single file) to read. It is opened read-only and never modified. folder
empty
Output required
--output
Folder for reports. Must not be inside the input folder. Each run gets its own sub-folder. folder
empty
Recurse
--recurse
Include sub-folders. yes/no
true
Extensions
--extensions
Only process these extensions (e.g. .pdf, .docx). Empty means the tool's default set. list
empty
Parallelism
--parallelism
Files processed at once. Use 1-2 for spinning disks or network shares. number
4

What you get

Each run creates its own folder inside the output folder, with the report page-counts.csv, errors.csv and manifest.json (see Run folders and manifests).

Report columns

Check the result

Tips
  • For an exact Word page count, convert the documents to PDF first (convert-to-pdf) and count the PDFs.
  • Sum the Pages column in Excel for a volume total, but remember Word figures are estimates and Not counted rows are blank.
  • Other file types (for example .txt) are skipped unless you add them in Extensions, and even then are reported as Not counted.
Watch out for
  • A Word document with no stored page count (some are produced by other software) is reported as Not counted rather than guessed.
  • Password-protected Word and PowerPoint files are not counted; a PDF that needs a password to open is not counted either. Use decrypt first if you have the passwords.
  • A PDF that opens without a password but is encrypted (for example, with printing restrictions) is counted and shows Encrypted = True.

From the command line

The command line is part of LitTechKit Pro. See Command line.

ltk run page-counts --input "D:\Matter\Production" --output "D:\Matter\Reports"

Related tools