Skip to content
Quasar Tools Logo

PDF Object Count

Enumerate and categorise every internal object in your PDF — fonts, images, streams, dictionaries, annotations, form XObjects, and OCG layers. Three analysis views: overview dashboard, full type breakdown with percentages, and per-page detail. All processed privately in your browser.

Upload a PDF to count and categorise all its internal objects.

Upload a PDF to see its object breakdown.

Why Use Our PDF Object Count Tool?

Complete Object Inventory

Counts every indirect object in the PDF cross-reference table — fonts, images, streams, dictionaries, arrays, annotations, form XObjects, OCG layers, and more.

Three Analysis Views

Switch between an Overview dashboard of primary object types, a full Type Breakdown table with percentage of total, and a Per-Page Detail grid for granular inspection.

Per-Page Breakdown

See exactly how many fonts, images, annotations, and XObjects are referenced on each individual page — useful for identifying resource-heavy pages.

Fully Browser-Based

All object table analysis runs locally in your browser. Your PDF is never uploaded to any server, keeping confidential documents completely private.

Common Use Cases for PDF Object Count

PDF Performance Profiling

Large stream counts or thousands of image objects can slow down PDF rendering. Use the object count to identify bloated documents before distributing them.

Pre-Press & Print Audit

Verify that the expected number of image objects, color spaces, and patterns are present before sending a PDF to a commercial print shop.

Compliance Verification

PDF/A and PDF/UA archival standards place restrictions on embedded objects. Count and categorise objects to verify the document meets specification requirements.

Developer Debugging

When building PDF generation pipelines, use the object count to confirm that your code produces the expected number of font, stream, and XObject entries.

Document Forensics

Unexpected objects — hidden streams, extra form XObjects, or OCG layers — can indicate concealed data. The object count helps surface anomalies quickly.

Redundancy Analysis

Duplicate embedded fonts and identical image streams inflate PDF file size. Object counts highlight over-referenced resources that an optimizer can safely remove.

Understanding PDF Object Structure

What are PDF objects?

Every PDF file is a collection of indirect objects listed in a cross-reference table (xref). Each object has a unique object number and generation number. The object types include: dictionaries (key-value maps that describe pages, fonts, images, and metadata), streams (binary data blocks such as compressed content streams and image data), arrays,strings, numbers, and null entries. Higher-level constructs like fonts, images, annotations, and form fields are all ultimately built from these primitive types.

How our PDF Object Count tool works

  1. Upload your PDF — the file is loaded entirely in your browser using pdf-lib. No data is sent to external servers at any point.
  2. Cross-reference scan — the tool enumerates every indirect object in the xref table and classifies each by type: dictionary, stream, array, string, number, boolean, or null. It then reads the /Type and /Subtype keys to further categorise dictionaries into fonts, images, annotations, form XObjects, OCG layers, color spaces, patterns, and shadings.
  3. Per-page resource audit — for each page, the tool reads the /Resources dictionary to report exactly how many font references, image XObjects, and annotation entries are present on that specific page.

What each object category means

  • Streams: compressed or raw binary data blocks — content streams, image data, embedded font programs, and ICC color profiles all live here.
  • XObjects: reusable drawing objects. Image XObjects ( /Subtype /Image) contain raster pixel data. Form XObjects ( /Subtype /Form) are vector graphics or template content that can be painted multiple times.
  • Annotations: overlay objects including comments, highlights, hyperlinks, stamps, and interactive form widgets (checkboxes, text fields, buttons).
  • OCG Layers: Optional Content Groups control document layers that can be toggled on/off. Hidden OCG layers can contain invisible content in the file.

Privacy, security & availability

The pdf object count analysis runs entirely inside your browser session using JavaScript. Your PDF never leaves your device — no file uploads, no server processing, no cloud storage. This makes the tool safe for sensitive contracts, financial statements, and confidential corporate documents. The tool is 100% free, requires no signup, and has no file size or page count limits.

Frequently Asked Questions About PDF Object Count

The tool enumerates every indirect object in the PDF cross-reference table and classifies them by type — dictionaries, streams, arrays, strings, fonts, images, form XObjects, annotations, OCG layers, color spaces, patterns, and shadings. It also provides a per-page breakdown of fonts, images, annotations, and XObjects.

Object counts are useful for performance profiling (too many streams slow down rendering), pre-press validation (confirming the right number of image and color space objects), developer debugging of PDF generation pipelines, compliance checks against PDF/A standards, and document forensics to detect unexpected hidden objects.

XObjects is the parent category that includes both Image XObjects (/Subtype /Image) and Form XObjects (/Subtype /Form). The Images count shows only raster image XObjects, while All XObjects includes forms too. The XObject total will always be greater than or equal to the Images count.

No. All object table scanning, type classification, and per-page analysis runs locally in your browser using JavaScript. Your PDF never leaves your device, making the tool safe for confidential and sensitive documents.

The total fonts count reflects unique font objects in the xref table. Per-page font counts show how many font references appear in each page resource dictionary, which may include duplicates across pages. A font used on 10 pages still counts as 1 unique object but appears as a reference on each of those 10 pages.

Optional Content Groups (OCGs) are PDF layer objects that can be toggled visible or invisible. They are used in multi-language documents, technical drawings, and interactive PDFs. Hidden OCG layers can contain invisible content — detecting their presence is important for compliance and document forensics.

Yes. Click the "Download TXT Report" button to save a plain-text summary of all object type counts plus the per-page CSV breakdown, named after your original PDF file.

Yes. The tool is completely free to use with no registration, no file size limits, and no page count restrictions.