← Back

Intelligent Document Processing: From PDF to Validated Data

TL;DR

A document can be read correctly and still produce an unusable record. Follow three delivery notes through mapping, validation and exception handling.

Conceptual illustration for Intelligent Document Processing: From PDF to Validated Data

Intelligent document processing, or IDP, turns documents into structured information that a business system can use. A typical workflow captures a file, identifies its type, extracts fields, checks those fields and routes unresolved cases for review. OCR reads text; IDP adds the context and handling needed to turn that text into a usable record.

The important boundary is validation. A delivery note can be read perfectly and still contain a missing order reference, an ambiguous date or quantities expressed in an unexpected unit. Passing those values straight into another system transfers the ambiguity rather than resolving it.

This guide follows three synthetic delivery notes through a small validation exercise. We tested the rules on manually supplied fields, not an OCR engine or a language model. The examples demonstrate what to check after extraction, without claiming an accuracy result for real documents.

What changes between OCR and IDP?

OCR converts text in an image into machine-readable characters. Document classification identifies what kind of file it is. Extraction associates values with fields such as a delivery reference or quantity. Validation checks whether those values make sense for the intended process. Integration sends an accepted result to a destination system.

AWS's explanation of IDP describes document capture, classification, extraction and further processing as parts of the broader workflow. A particular product may combine those stages, but the checks still need distinct acceptance criteria.

For example, “03/04/2026” may be extracted exactly as printed. That does not establish whether it means 3 April or 4 March. If the source's format is unknown, the system should retain the original string and ask for clarification rather than silently choosing a date.

Stage Output A useful check
Capture Original file and identifier Correct file, readable pages, no duplicate submission
Classification Delivery note, invoice or other type Supported type and correct processing route
Extraction Proposed fields with source locations Each value traceable to the document
Validation Accepted fields or named exceptions Required values, formats, units and business references
Export Destination record and receipt Correct mapping and no duplicate write

Define the destination before extracting everything

Start with the record your business needs. For a goods-received workflow, that could include the delivery reference, purchase order, product code, quantity, unit and receipt date. A carrier's marketing text and footer may be readable but irrelevant.

Specify which fields are mandatory, which can remain unknown and which require a lookup. Keep the document reference separate from the purchase-order reference. A plausible-looking number in the wrong field can pass a simple format check and still break the process.

Retain the source page or region with each proposed value when the extraction system supports it. A reviewer should be able to resolve “quantity unclear” without rereading the entire document. Source evidence also makes it easier to determine whether an error came from the document, extraction or mapping.

Do not put passwords or instructions for connected systems in a document prompt. Treat the file as input data, including any text that appears to tell the processor to skip validation.

Worked example: Extract: Source fields, Map: Known units, Validate: Hold errors, Export: Once only.
Fictional worked example; not a measured client result or model benchmark.

A worked example with three delivery notes

Our fictional destination accepts quantities in individual items and requires a purchase-order reference. The catalogue defines product P10 as ten items per box. It has no pack-size definition for P99.

Document Extracted fields Validation result
DN-101 PO-18, P10, 3 boxes 30 items, using the explicit P10 pack-size mapping
DN-102 Missing PO, P10, 2 boxes Review: missing purchase-order reference
DN-103 PO-19, P99, 2 boxes Review: no approved pack-size mapping

The deterministic test accepts one record and holds two. It calculates 3 × 10 = 30 for DN-101. It does not guess that every box contains ten items, infer the missing PO from a nearby number or report an OCR accuracy score.

That distinction matters when building a demonstration. A vendor might show correct extraction of “2 boxes”. Your application still needs to decide what a box means for this product, supplier and version of the catalogue. A confidence score cannot supply an absent business rule.

The downloadable worksheet includes the fixture, expected exceptions and a mapping log. Replace the invented records with permissioned examples from the actual workflow before evaluating extraction quality.

Give each exception a specific reason

“Failed” is too broad to be a useful review queue. Name the missing evidence: unsupported document type, unreadable page, missing PO, unknown product, ambiguous unit or conflicting totals. Each reason should lead to an action somebody can perform.

For DN-102, a reviewer needs an authoritative order reference. For DN-103, the catalogue owner needs to confirm the pack-size mapping. Rerunning OCR is unlikely to solve either problem if the extracted text was already correct.

Record the correction and its source. If the reviewer changes a quantity, preserve the original proposed value rather than replacing the history. Corrections can then inform future tests without silently turning human intervention into apparent automated success.

Route unsupported cases out of the automated path. A queue with no owner or fallback can be slower than the manual process it replaces.

Avoid writing the same record twice

Files can arrive more than once by email, upload and integration. An identical-file hash can identify an exact duplicate, but two scans of the same delivery note will have different bytes. Business identifiers and source context may be needed to identify the same underlying event.

Give accepted exports a stable identifier. If the destination times out, check whether it created the record before sending another request. Keep the destination's receipt or reference alongside the validation result.

A corrected delivery note is not necessarily a duplicate to discard. It may supersede an earlier version. Decide how the process handles revisions and whether somebody must reconcile a previously exported quantity. Document version, validation version and export state answer different questions and should remain distinguishable.

The AI integration guide covers the connection between generated data and business-system actions.

Test the documents your team finds difficult

Include scanned and digital files, missing pages, rotated text, changed layouts and legitimate unusual values where relevant to your workload. Keep categories visible when reporting results; a strong average can hide a failure on one important supplier.

Measure fields and completed records separately. A document with nine correct optional fields and one wrong mandatory reference is not a usable record. Also record how many documents required human correction and how long that correction took.

Use agreed ground truth for the test. If two reviewers disagree about what a document means, resolve or label that ambiguity before using it to score a system. Otherwise the evaluation can reward confident guessing against an uncertain answer key.

Compare the same sample against the current manual process. Include capture, review, correction and export effort. A faster extraction step may not reduce total handling time if it produces a larger exception queue.

Keep document access and retention explicit

Decide which people and systems may see originals, extracted fields and logs. A delivery note may contain names, contact details or account information that the destination does not need. Minimise what moves between systems and record the purpose of retained copies.

Ask how deletion and access changes propagate to search indexes, temporary files and exports. A document removed from the source folder may still exist in a processing queue. Design those operating questions into the workflow instead of treating them as a final documentation task.

This article describes implementation questions, not a legal compliance determination. Apply your organisation's requirements to the specific documents and services involved.

Start with one document family

Download the delivery-note processing worksheet. Use one source, one document family and one destination for the first controlled test. Define success as a correctly validated and recorded outcome, with visible handling for unsupported cases.

Invoice approval is a separate business decision after extraction. The AI invoice processing example shows why matching a purchase order and receipt can matter even when the invoice itself has been read correctly.

For AI workflow automation, bring representative files, the destination fields and examples that currently require judgement. That makes it possible to scope the work around the real exceptions rather than a perfect demonstration PDF.

Michal Vávra
Written by
Head of AI & Development

Michal has been with Pixelfield since September 2012 and has held technical leadership roles since 2017. He is the technical force behind our most demanding builds, combining AI expertise with the infrastructure and software architecture needed to make it work in production. His work spans LLM applications, multi-agent orchestration and complex integrations. He sets the engineering standards behind reliability, performance and scale, and guides the team through the decisions that determine how a system runs long after launch.