Skip to content

Dataset

Complex PDF datasets with parsing ground truth for AI training

A PDF dataset for document parsing is a set of hard-to-parse business PDFs, such as multi-column reports, dense tables, nested forms and files that mix scanned and digital pages, each paired with the structured source it was rendered from or extracted into. SourceX sources these from established businesses such as publishers, financial and engineering firms and document processing teams that kept both the PDF and its Word, InDesign, XML or database source. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Hard-to-parse business PDFs paired with the authoring source or verified extraction that gives their true structure
Typical systems
Microsoft Word, Adobe InDesign, FrameMaker, LaTeX, XML publishing pipelines, report generators, capture platforms
Typical history
Specified by the buyer; recurring reports reuse one template over many periods
Modality
PDF files and page images with structured text, table grids, form field trees and per-page tags
Delivery formats
Agreed per order; original PDFs, source files (DOCX, IDML, XML), HTML or Markdown targets, JSONL labels
Preparation
Personal data and confidential figures masked in both the PDF and its source, with masked regions listed
Licensing
Scoped per document family; the holder's rights in each document are reviewed; permitted use set in the license
Availability
Sourced to your spec, with quotas by failure type; supply is not guaranteed
Office documents and PDFsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
pdf_idstringPseudonymous, stable ID shared by the PDF, its source file and every page record.
document_familyobjectDocument class, such as annual report, technical manual or application form, and the template it shares with sibling files.
productionobjectCreator and producer strings from the PDF metadata, whether the file is tagged, and whether it is born digital, scanned or mixed.
pagesarrayPer page, the size, rotation entry, column count and whether the page is digital or a scan.
source_documentobjectThe authoring source and its format: DOCX, IDML, FrameMaker, LaTeX, XML or a report definition with its data rows.
source_matchobjectHow the source was confirmed to be the version rendered, and any changes that exist only in the PDF.
reading_orderarrayOrdered block IDs for the main text flow, with separate threads for sidebars, captions, footnotes and running headers.
blocksarrayLayout elements with type, page, bounding box and text, and whether the box came from PDF tags, text alignment or annotation.
table_structuresarrayEach table as an HTML grid with row and column spans, header rows, and links between parts split across pages.
note_linksarrayFootnote, endnote and table note markers tied to their note text.
form_fieldsarrayFor forms, the field tree with names, types, values, checkbox states and parent groups.
difficulty_tagsarrayFailure types present on each page, from a list agreed in the spec.
text_layerobjectWhether embedded text is native or from OCR, with flags for fonts that lack a Unicode mapping.
maskingarrayPage regions and source spans removed or replaced during de-identification.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "pdf_id": "pdf_4e9a70",
  "document_family": { "class": "annual_report", "template_id": "tpl_ar_2col" },
  "production": { "creator": "Adobe InDesign", "tagged": false, "origin": "mixed" },
  "pages": [
    { "n": 41, "rotation": 0, "columns": 2, "origin": "digital" },
    { "n": 42, "rotation": 90, "columns": 1, "origin": "digital" },
    { "n": 43, "rotation": 90, "columns": 1, "origin": "digital" },
    { "n": 58, "rotation": 0, "columns": 1, "origin": "scan" }
  ],
  "source_document": { "format": "idml", "file": "pdf_4e9a70_src.idml" },
  "source_match": { "method": "text_diff", "status": "matched_with_exceptions",
    "pdf_only_changes": [ { "page": 58, "note": "Signed auditor letter scanned in after export" } ] },
  "reading_order": [
    { "page": 41, "main": ["b41_1", "b41_2", "b41_4", "b41_5"],
      "sidebar": ["b41_3"], "footnotes": ["b41_6"] }
  ],
  "blocks": [
    { "id": "b41_3", "type": "sidebar", "page": 41, "bbox": [306, 120, 560, 340],
      "bbox_source": "text_alignment" }
  ],
  "table_structures": [
    { "table_id": "t_17", "title": "Segment results", "html": "t_17.html",
      "parts": [ { "page": 42, "rows": "1-28" },
                 { "page": 43, "rows": "29-51", "header_repeated": true } ],
      "merged_header_cells": 6 }
  ],
  "note_links": [
    { "marker": "(2)", "anchor": "t_17 row 12 col 4",
      "note_text": "Restated for the change in segment reporting." }
  ],
  "form_fields": [],
  "difficulty_tags": [
    { "page": 41, "tags": ["multi_column_flow", "sidebar", "footnote"] },
    { "page": 42, "tags": ["rotated_page", "table_across_pages", "merged_cells"] },
    { "page": 58, "tags": ["scanned_insert"] }
  ],
  "text_layer": { "ocr_pages": [58], "fonts_without_unicode_map": 0 },
  "masking": [ { "page": 58, "region": [72, 640, 300, 700], "reason": "signature" } ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train document parsers

Page and structured-output pairs with exact reading order teach a model to turn a PDF into clean Markdown or HTML.

Table structure recognition

Tables with spans, multi-level headers and parts on several pages come with the grid the author built, not one an annotator inferred.

Benchmark parsers by failure type

Held-out pages tagged by difficulty give a score per construction instead of one average dominated by easy pages.

Test retrieval ingestion

Documents with known section, table and footnote boundaries show whether chunking splits a table or detaches a note from its value.

Form understanding

Nested forms with their field trees train extraction of key and value pairs, checkbox groups and repeating sections.

Use-case guides: Document AI, enterprise search and RAG, Private evaluation sets, Finance and accounting agents

What makes this data valuable

Authoring source on file

Structure read from the source is exact where annotation is a judgment.

Verified version match

A text diff between source and PDF, with PDF-only changes listed, shows the pair really corresponds.

Per-page difficulty tags

Tags let you count hard cases before delivery and report results by type.

Many templates

Distinct designs behind each failure type matter more than the number of pages.

Box provenance

Each bounding box states whether it came from tags, alignment or a person.

Mixed origins kept

Scanned inserts and OCR text layers are flagged per page, not filtered out.

Document stack

PDF dataset

This page covers complex PDFs with parsing ground truth.Illustrative

Why the authoring source is the strongest ground truth

A PDF records where glyphs are painted, not what they mean. The content stream can draw text in any order, so a two-column page may come out interleaved line by line, and a table is positioned text and ruled lines with no row or cell objects. Tagged PDF adds a structure tree, but many business PDFs are untagged or carry tags in the wrong order. Ground truth is therefore often made by people drawing boxes and typing table grids, and annotators can disagree on the hard cases.

The file the PDF was rendered from already holds the answers. A Word document stores paragraphs in story order, tables as rows and cells with explicit column spans and vertical merges, a flag on rows that repeat as headers, and footnotes in a separate part tied to their anchors. An InDesign document exported as IDML stores each story as one XML stream however many threaded frames and pages it runs through. Publisher XML, LaTeX and report definitions with the database rows behind them state structure in their own ways. Several well-known public layout and table sets were built this way from scientific articles, which is one reason public data skews to papers.

Two limits need planning. The source does not hold page positions, because text reflows at render, so boxes come from aligning source text to PDF text, and each box should say how it was made. And the source on file may not be the version rendered: a figure corrected only in the PDF, a signed page scanned in after export, an appendix merged from another file. Where no source survives, extraction output that a person verified in production is the next best truth, labeled as such.

Specifying a parsing set by failure type

Many pages in a business document are single-column prose that most parsers handle, so a set bought by page count can be mostly easy pages. Parsers fail on particular constructions. A table that runs over several pages has to be joined and its repeated header dropped. Merged cells and multi-level headers cannot always be rebuilt from ruling lines, and some tables have none. A landscape table may be a rotated page or sideways text on an upright page, which are stored differently. A footnote marker can fuse with the number beside it, so 1,204 with note 3 reads as 1,2043. A font with no Unicode mapping yields garbage text from a page that looks clean.

A spec built on this starts with the failure types that matter to your product, each defined so it can be tested, such as a table whose rows continue onto at least one more page. Set a minimum count of pages or tables per type and per document family, and cap the share from any one template so one quarterly report design cannot fill the quota. Ask for pages that combine types as well as isolated cases, and for per-page tags you can count before delivery.

Order whole documents, with quotas counted on the tagged pages inside them. Continuations, footnote numbering, heading hierarchy and running headers only exist across pages, and easy pages are where false table detections get measured. Scores can then be reported per failure type, on templates held out whole from training.

What to check before licensing

  • Ask what the ground truth for each document is: the authoring source, a tagged structure tree, production extraction that a person verified, or labels made for this delivery.
  • Diff the source text against the PDF text on the sample. Look for late edits made only in the PDF, scanned inserts and merged appendices.
  • Confirm the documents come from the holder's own files with clear rights. Document processing teams hold their clients' documents, and publishers hold content owned by authors and licensors.
  • Check that confidential figures and personal data in reports were cleared or masked in both the PDF and the source, and that masking removed the underlying text instead of covering it with a box.
  • Count pages or tables per failure type against your quotas, and count the distinct templates behind each number.
  • Ask how bounding boxes were produced and spot-check them on rotated pages and multi-page tables, where alignment most often slips.
  • Compare the creator and producer strings in the sample PDFs with the stated origin, and check how scanned pages and OCR text layers are flagged.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

What makes a PDF complex for parsing?

A PDF is complex for parsing when its structure is not stated in the file and a parser has to infer it. Common cases are text in two or more columns with sidebars, tables with merged cells or no ruling lines, tables that continue across pages, rotated pages, footnotes, nested forms, scanned pages inside a digital file, and fonts whose embedded text does not map to Unicode. You choose which of these the set must contain.

Why is the authoring source better than human annotation?

Because it is exact where annotation is a judgment. The source states reading order, cell spans, header rows and footnote anchors as the author built them, so there is no disagreement to resolve on merged cells or column flow. People are still needed for page positions and for documents with no surviving source, and those labels should be marked separately from source-derived ones.

Can the ground truth be delivered as Markdown or HTML?

Yes, the target format is agreed per order. Tables are best kept as HTML, because common Markdown table syntax cannot express merged cells. Reading order can be delivered as an ordered list of blocks, and forms as a field tree in JSON. Ask for the rules used to convert the source into the target, so you can rebuild it in another format later.

Are scanned pages included?

They can be, where they occur inside real mixed documents: a signed letter, an older appendix or a faxed attachment bound into a digital report. Ask for each to be flagged per page, along with whether its text layer came from OCR. A set made mainly of filled-in paper forms with keyed values is a different request with different ground truth.

Do tagged PDFs count as ground truth?

Only partly. A tagged PDF carries a structure tree that names headings, paragraphs, lists and table cells and gives a logical order, which is useful where the tags were made with care. Tags written by an export tool or added later for accessibility can be incomplete, generic or out of order, and scanned inserts have none. Treat tags as one source of labels, record which blocks relied on them, and check a sample against the page.

Which document types can I request?

You can request any document type your product has to read, though supply is not guaranteed. Requests commonly name annual and quarterly reports, regulatory filings, technical manuals, engineering specifications, lab and inspection reports, statements and application forms. Supply depends on finding holders who kept the source beside the PDF and have the right to license both, so name the types in order of priority.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 25 November 2026.

See if your company qualifies