ETEvoraTools
PDF Tools

PDF Page Counter

PDF Page Counter reports pdf-lib's page count for the selected document. It does not render pages, inspect page labels, count sheets after duplex printing, identify hidden layers, or validate that every page displays correctly. An encrypted, damaged, unsupported, or oversized file can fail to load.

Runs locally — files stay on your device
Quick answer

Does a page count equal the number of printed sheets?

No. Duplex settings, imposition, and multiple pages per sheet change physical sheet count.

PDF pages are ordered nodes in a page tree

The count refers to logical PDF pages, regardless of their dimensions, labels, rotation, or visible content.

How it works

The file is loaded with pdf-lib and getPageCount returns a single number; no output PDF is created.

Key concepts

Labels are separate

Pages can display i, ii, 1 while still occupying physical positions 1,2,3.

Blank pages still count

A page node contributes even without visible content.

When to use it

  • Check a document's logical page count.
  • Compare an expected export count.
  • Inspect a PDF without uploading it.

When not to use it

  • Do not infer printed sheet consumption.
  • Do not treat count success as full PDF validation.
  • Do not expect page labels or ranges.

Worked examples

Report

Input
12-page PDF
Expected output
12 page(s)

Logical pages are counted.

Duplex print

Input
12 pages
Expected output
12, not 6 sheets

Print settings are absent.

Mixed sizes

Input
A4 and Letter pages
Expected output
Each counts once

Dimensions do not affect count.

Common mistakes

Calling pages sheets

Physical printing can use both sides. Correction: Apply print settings separately.

Ignoring blank pages

They count. Correction: Inspect or delete them.

Assuming full validity

Only load/count was tested. Correction: Render and validate with appropriate software.

Best practices

  • Compare with visual page thumbnails.
  • Distinguish pages from sheets.
  • Use a conformance validator for archival workflows.

Related operations and differences

Crop PDF Pages

Choose Crop PDF Pages when you need to set a custom crop box on every PDF page.; use PDF Page Counter specifically for page count.

Delete PDF Pages

Choose Delete PDF Pages when you need to remove selected pages from a PDF.; use PDF Page Counter specifically for page count.

Duplicate PDF Pages

Choose Duplicate PDF Pages when you need to insert a copy after every selected page.; use PDF Page Counter specifically for page count.

Extract PDF Pages

Choose Extract PDF Pages when you need to create a new PDF from selected pages.; use PDF Page Counter specifically for page count.

PDF Split

Choose PDF Split when you need to extract selected pages into a new PDF.; use PDF Page Counter specifically for page count.

Reorder PDF Pages

Choose Reorder PDF Pages when you need to create a PDF in the exact page order you enter.; use PDF Page Counter specifically for page count.

Limitations and privacy

  • Page count only.
  • No labels, blank-page detection, rendering, validation, sheet/imposition calculation, or PDF repair.
  • 80 MB limit.

The PDF is read and processed locally in this browser.

Frequently asked questions

Do blank pages count?

Yes.

Are printed sheets counted?

No.

Are page labels shown?

No.

Is an output PDF created?

No.

References