A secure, private PDF page counter reads one local PDF of up to 25 MiB in the browser, reports its exact structural page count, and never uploads the source file to Lizely.

The PDF Page Counter also groups pages by identical page-box width and height, so one read-only check covers both document length and page geometry. It is useful for upload checks, print estimates, splitting plans, and document quality assurance without changing the original PDF.

pdf page counter secure private
PDF Page Counter: Secure, Private Page Counting

Privacy and security in the actual workflow

The privacy guarantee comes from a specific processing model. You choose a local file, the browser reads its document page tree inside the current tab, and the tool reports the count and page-box dimensions. The source file is never uploaded to Lizely. The operation is strictly read-only: it does not add metadata, repair the PDF, normalize page boxes, save a new copy, or create a download.

Part of the workflow Verified behavior Reader benefit
File selection Reads one local PDF of up to 25 MiB Supports a bounded private inspection without a batch upload
Processing location Runs inside the current browser tab The PDF is never uploaded to Lizely
Source handling Strictly read-only The original document and its bytes are not changed
Output Reports the total page count and grouped page-box dimensions Provides a compact count-and-size inventory
Result lifetime Remains in the page until another file is selected or the tab closes No saved report or modified document is created

This tool answers how many pages the PDF contains and which page-box dimensions occur. It is an inspection step rather than an editor, so tasks such as splitting, rotating, resizing, or reordering require separate workflows.

What the page total represents

The total is the length of the PDF’s structural page array. It is not inferred from file size, thumbnail count, printed sheet count, or the page numbers visible on the document. A file whose visible labels start later, repeat, or use Roman numerals still receives its structural page count. Duplex printing can place two page objects on one physical sheet, but the number of physical duplex sheets is not what this counter returns.

Use the result when you need to verify document length or prepare a later print or split plan. Do not describe it as a blank-page count: the tool does not detect blank pages, count annotations, render thumbnails, or infer printing cost. Its answer is deliberately limited to the pages present in the PDF structure.

Count a PDF privately in the browser

  1. Open the PDF Page Counter and choose one local PDF. The file must be non-empty and no larger than 25 MiB.
  2. Wait for the browser to finish reading the document page tree. The tool reads the PDF structure rather than estimating the result from file size or a thumbnail preview.
  3. Review the total page count and each grouped page-box dimension. Treat the width and height as PDF points and check the file name alongside the result.

Selecting another file clears the previous result before processing begins. A job identifier also prevents an older, slower read from replacing a newer selection, so the displayed result stays associated with the currently named file.

Read the page-box dimensions correctly

For every page, the tool reads the width and height of the current page box. Values are rounded only for readable display, to at most two decimal places, and equal displayed sizes are then grouped in first-seen order. Mixed-size PDFs are handled without assuming that the first page represents every later page.

Worked example: 2 pages at 612 × 792 PDF points plus 1 page at 400 × 500 points = 3 total pages. The size inventory would show 2 pages at 612 × 792 points and 1 page at 400 × 500 points.

The grouped list can reveal a cover with a different box, a scanned insert, a foldout, or an accidental page-size change. It does not label dimensions as A4, Letter, or another paper standard because that classification requires orientation and tolerance decisions. If you need to compare the points with a named format, consult the paper size chart separately.

Rotation metadata can affect how a viewer presents a page, while the reported width and height remain the page-box values returned by the document library. The counter does not rewrite rotation or resize pages. PDF points also describe document geometry rather than pixels, scan resolution, or image quality.

Supported files and visible errors

The counter accepts one non-empty PDF no larger than 25 MiB. It shows a visible error rather than returning an uncertain result when the input falls outside the supported conditions.

  • An empty file or a selection that is not a PDF cannot be processed.
  • A file larger than 25 MiB exceeds the supported limit.
  • An encrypted or password-protected PDF cannot be opened by the counter.
  • Damaged cross-reference data or an unsupported PDF produces an error.

Password protection is not bypassed. If a protected document must be unlocked before inspection, use an appropriate authorized workflow first and then select the resulting readable PDF.

Where the result is useful

The count-and-size inventory supports several common document checks, but each use has a clear boundary.

Use case Useful output Important limitation
Upload check Exact structural page count Does not inspect document content
Print planning Number of PDF pages for an estimate Does not count duplex physical sheets or infer printing cost
Splitting plan Total count for defining page ranges Does not split or save any files
Page-size quality assurance Counts for each unique page-box size Does not normalize, resize, or identify a paper standard
Mixed-document review First-seen groups of matching dimensions Does not determine why a page has a different box

For reordering, deletion, N-up layouts, splitting, or resizing, use the dedicated PDF workflow for that operation. Those tasks create new files, while this counter remains a fast inspection step that leaves the source untouched.

Keep the inspection private and temporary

The result is designed to be temporary. No download is created because the source is not changed, and the displayed inventory remains only in the current page. Selecting another file clears the old result before the new document is processed; closing the tab ends the displayed session.

  • Only the selected PDF is read during the operation.
  • No server upload occurs during loading, counting, or size grouping.
  • No metadata or other content is written back to the source.
  • No persistent report is created automatically.

These are specific processing guarantees: no upload to Lizely, no write to the PDF, and no saved output. For confidential material, use a browser and device you trust, because local processing addresses the tool’s upload and modification behavior rather than the broader security of your system.

Technical basis for the structural count

The implementation reads the structural page array exposed by pdf-lib. The PDFDocument.getPageCount documentation describes the library’s page-count operation, while the PDFPage.getSize documentation describes its page-size access. The counter applies display rounding, groups equal displayed sizes in first-seen order, and guards against stale asynchronous reads. This explains why the page total can be exact while dimensions are presented as rounded display values.

Related reading: PDF to Long Image: Secure, Private, and Local.