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.
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
- You need page volumes to estimate review, printing or court book costs.
- You need to check page counts in a production or a set of PDFs before stamping or combining.
- You want to find password-protected PDFs and Office files in a set.
How to run it
- Choose the folder of documents as Input, and an Output folder outside it.
- Leave Extensions empty to count PDFs, Word (
.docx,.docm,.dotx,.dotm), PowerPoint (.pptx,.pptm,.potx,.potm,.ppsx,.ppsm) and TIFF files, or narrow it. - Click Run.
- 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
| Setting | What it does | Type 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/notrue |
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. | number4 |
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).
page-counts.csv: One row per document counted or recognised: Pages, CountSource (PDF page tree, Slide list, TIFF image directories, Document properties (as last saved), or Not counted), Encrypted, PdfVersion and Notes explaining any document that was not counted.
Report columns
RelativePathFileNameExtensionPagesCountSourceEncryptedPdfVersionNotesFullPath
Check the result
- Filter CountSource = Not counted and read the Notes (for example, password required, no stored page count, or an unsupported content type).
- Filter CountSource = Document properties (as last saved) to see which figures are Word estimates.
- Look at
errors.csv: a damaged file that cannot be opened is listed there and has no row in the report, so add those to your totals separately.
- 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.
- 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
- File Inventory: Lists every file with size, timestamps, attributes, hashes and detected file type, flagging extensions that don't match the content.
- Convert To PDF: Converts Word, Excel, PowerPoint, RTF, text, email (.eml, .msg) and image files (including multi-page TIFFs) to PDF using the Microsoft Office on this PC, from read-only working copies with macros and external links disabled, keeping saved values and showing hidden content, and reports the page count of each PDF. AutoCAD drawings (.dwg, .dxf, R14 and later) are converted without AutoCAD, one page per layout.
- Decryption: Removes known passwords from PDF, Word, Excel and PowerPoint files, writing unlocked copies and reporting which password number opened each file (the passwords themselves are never saved). Encrypted .docx/.xlsx/.pptx files are decrypted without Office, so the unlocked copy is the original document exactly.
- Court Book: Builds a court book from PDFs and an optional Excel/CSV index: a hyperlinked index, consecutive page numbers on every page, and bookmarks for each section and document. Every link and page number is checked.