What is inside a PDF file, and what does repairing one do?
A PDF is a header naming its version, a body of numbered objects (pages, fonts, images, streams), a cross-reference table that records where each object starts, and a trailer pointing at the catalogue and the metadata. Metadata lives in the Info dictionary (title, author, dates, producer) and, since PDF 1.4, in an XMP stream; fonts are embedded whole, subsetted or only referenced by name. A viewer that cannot find an object walks the file to rebuild the cross-reference table — repair does the same and writes the rebuilt table, which fixes most "damaged file" errors without touching the pages.
How to use PDF Page Counter
- Drop all the PDFs.
- Click "Count pages".
- Read the totals; download the CSV if needed.
PDF Page Counter features
- Batch counting of many files
- Page sizes per file (A4 × 12; A3 × 1)
- File sizes and grand totals
- CSV export of the table
- Fast: only the page tree is read
- Local processing
PDF Page Counter example
Print quote for a batch
Input:
14 PDFsOutput:
"312 pages in 14 files" — table with pages, sizes and page formats, CSV downloadFrequently asked questions about PDF Page Counter
How many files can I count at once?
As many as fit in your device’s memory budget (250 MB together on desktop); each file is opened only to read its page tree, so it is fast.
Does the CSV include page sizes?
Yes: file name, page count, size in bytes and the page sizes found (for example "A4 portrait × 12; A3 landscape × 1").
Why is my scanned PDF showing 1 page?
Some scanners create one page per sheet side; others put every image on a single long page. The count reflects the file’s actual pages.
Is my PDF uploaded to a server?
No. The file is opened and processed by your browser with WebAssembly and JavaScript; nothing is sent to Mutqan Soft or anyone else. Close the tab and the file is gone. Downloading the result needs a free account — no subscription, no payment.
Can I use it on a password-protected PDF?
Yes, if you know the password: the file list asks for it once and every operation then works on the decrypted pages. The output is saved without a password unless you protect it again.
Technical notes
Each file is opened by pdf-lib and its page tree walked; MediaBox and /Rotate give the visual size which is matched against named paper sizes within 2 pt. Encrypted files are counted after you enter the password.
References
- ISO 32000-2:2020 — Document management — Portable document format — Part 2: PDF 2.0The current PDF standard: file structure, objects, pages, fonts, annotations, forms and encryption.
- PDF Reference — ISO 32000-1:2008 (PDF 1.7), Adobe copyThe freely readable PDF 1.7 specification: page trees, content streams, metadata, permissions and the standard security handler.
- PDF.jsThe open-source PDF renderer that draws PDF pages in the browser without a plugin — how documents are previewed locally.