PDF Page Counter
Inspect page counts, page dimensions, paper sizes, and orientation of PDF documents locally.
Select or drag and drop a PDF file here to inspect page count and dimensions
About PDF Page Counter
Document processing workflows frequently require rapid verification of page totals, sheet dimensions, and layout orientations before batch printing, digital archiving, or commercial binding. Commercial PDF software packages often demand hefty monthly subscriptions or force users to upload proprietary files to remote cloud servers.
This in-browser PDF page counter and document dimension inspector parses PDF file headers directly in your web browser. It instantly reports page counts, PDF version specifications, page point dimensions, standard paper sizes (such as Letter, Legal, or A4), and encryption status.
Because every byte of the file is processed locally through standard HTML5 FileReader APIs, sensitive contracts, financial statements, and medical records never leave your local device.
To inspect document properties, view embedded tags via the PDF metadata viewer or extract raw copy using the PDF to text converter.
Step-by-step practical guide
- Select a PDF document by clicking Choose PDF File or dragging your file into the designated upload zone.
- Alternatively, click Load Sample Document to test the inspector with an in-memory sample file.
- Review the summary banner for total page count and document encryption status.
- Inspect the detailed dimensions card to confirm physical sheet sizing in points and standard paper classifications.
- Verify page orientation (Portrait versus Landscape) to ensure compatibility with printer hardware.
- Copy the document metrics summary table for record-keeping or print estimation sheets.
Engineering specifications and execution details
Executes locally in browser memory via HTML5 FileReader ArrayBuffer binary parsing.
Scans document object cross-reference tables (XREF) and trailer dictionaries for /Type /Pages and /Count declarations.
Resolves MediaBox and CropBox bounding arrays [llx lly urx ury] to calculate exact point dimensions (72 points per inch).
Detects standard international paper sizes: US Letter (612x792 pt), US Legal (612x1008 pt), Tabloid (792x1224 pt), A4 (595x842 pt), and A3 (842x1191 pt).
Identifies PDF encryption dictionary presence (/Encrypt) to report password protection status.
Data privacy and memory isolation
All PDF binary parsing occurs in volatile browser memory without network transmission.
Zero document files, file names, page counts, or binary streams are recorded or stored on remote servers.
Common production use cases
- Print shop technicians calculating per-page press quotes and binding requirements for customer jobs.
- Legal assistants confirming page counts on discovery productions and court filings before submission.
- Office administrators auditing large document repositories before bulk scanning or archiving.
- Students and academic researchers verifying thesis length limits before final institutional submission.
- Remote teams inspecting digital contracts without breaching company privacy or NDA terms.
Edge cases and operational boundaries
- Linearized web-optimized PDFs: Fast web view PDFs store page count dictionaries near document headers; the parser reads initial byte ranges before scanning trailers.
- Mixed page orientations: Multi-page presentations containing both landscape slides and portrait appendix pages report dimensions based on primary document root declarations.
- Password-protected encrypted files: Encrypted PDFs with masked dictionary objects display encryption notices while reading unencrypted header metadata.
- Large multi-gigabyte files: The parser reads binary slices incrementally, preventing browser memory exhaustion on lengthy reports.
Frequently Asked Questions
Does this tool upload my PDF to an external server?
No. The file is parsed strictly on your computer using browser JavaScript. No document data leaves your device.
How are paper sizes calculated from point measurements?
PDF standards define 72 PostScript points per inch. Multiplying point measurements by 25.4 and dividing by 72 produces millimeter measurements, which match standard ISO and ANSI dimensions.
Can this tool read password-protected PDFs?
The inspector detects whether encryption exists. If the document has encrypted metadata, you will see an encryption status indicator.
Why do some PDFs have different dimensions on different pages?
The PDF specification permits individual page objects to override root document MediaBox values, allowing mixed landscape spreadsheets alongside portrait text.
Is there a file size limit for inspecting PDFs?
Because processing happens directly in your browser memory, files up to several hundred megabytes parse smoothly on modern devices.
What is the difference between MediaBox and CropBox?
MediaBox defines the physical medium boundary for printing, while CropBox specifies the visible region displayed on computer screens.
Can I inspect multiple PDF documents in one session?
Yes. You can select new files sequentially, and each document will clear previous data from memory immediately.