Case Study: See how Formable built DOCX redlining with Apryse in two months

Financial Services and KYC Document Data Extraction

Apryse Smart Data Extraction pairs deterministic structure recovery with purpose-built AI. On a dense, multi-column bank statement or a filing table that crosses a page break, it rebuilds the layout first and returns JSON with page numbers and bounding boxes. This page covers financial documents and KYC packets within document extraction and parsing.

Extracting Data from Financial Documents

Apryse Smart Data Extraction recovers document structure before it reads a single value, and that order matters most on a dense, multi-column bank statement. The structure layer is deterministic: the same input produces the same structure every time. Purpose-built AI handles classification and key-value extraction on top of that foundation, and those results carry confidence scores.

Your code receives JSON with page numbers and bounding boxes, so each extracted line item traces back to a page and a position. That holds for statements, annual reports, prospectuses, regulatory filings, trade confirmations, and KYC packets. Smart Data Extraction is an add-on to the Apryse Server SDK and runs inside your own infrastructure. You build the reconciliation, reporting, or onboarding workflow around it.

Requirements and Platform Support

Copied to clipboard

Smart Data Extraction ships on the Server SDK only. The table lists what it needs, what it returns, and what it does not do.

Requirement
Smart Data Extraction on the Apryse Server SDK
Where it runs
Inside your own infrastructure, on a server, a VM, or a container. No document content goes to Apryse.
Required gate
Initialize PDFNet once, before any extraction call: PDFNet.initialize() in Java and PDFNet.Initialize() in C#. A trial key or a production license key is required.
Licensing tier
Add-on. Production use needs the Smart Data Extraction add-on license, and the Data Extraction module is a separate download. Trial keys have unlimited access.
Platforms
Windows and Linux, x64 only. ARM and 32-bit are not supported.
Install
Java: add the DataExtractionModuleWindows or DataExtractionModuleLinux dependency. C# and other bindings: expand the module archive into your SDK directory. The DataExtractionTest sample ships in the main SDK download.
Trial limits
Trial output is capped at 100 pages, and an evaluation watermark page is inserted.
Confidence scores
Returned for key-value extraction, document classification, and form field identification. Not returned for table extraction.
Table export
JSON or XLSX. Whole-document PDF to XLSX is the Structured Output Module, a separate add-on.
Java guide
.NET guide
More language guides
Docs
Docs
Docs
Docs

Why Dense, Multi-Column Documents Break Naive Extraction

Flat text extraction reads a page like a line of prose, left to right and top to bottom. Financial documents are not prose. Three layouts break that reading again and again.

Columns read across instead of down:
Copied to clipboard

Two-column prospectus text interleaves, and a statement's amount and balance values detach from their column headers.

Footnotes interleave with figures:
Copied to clipboard

A footnote marker or a footer line lands inside the number it follows, and the figure no longer parses.

Tables continue across a page break:
Copied to clipboard

The continuation becomes an orphan fragment, and the subtotal or total on the next page loses its rows.

The cost of getting this wrong is a reconciliation failure that raises no error. A figure in the wrong column posts to the wrong line, and nothing flags it.

The fix is document structure recovery. It rebuilds rows, columns, headers, and footers from page geometry before the engine assigns meaning to any text, so a value keeps the column it was printed in. The next sections show what that looks like in code and in the JSON your code receives.

Statement Line Items

Copied to clipboard

A statement line is a row in a table: a date, a description, an amount, and a running balance. The tabular engine returns that row as structured cells, so you read the amount by column index instead of parsing a line of text.

This example covers Apryse Server SDK integration using Java on Linux (x64). For other languages or platforms, see the Server SDK get-started guide. Java setup is in the Java get-started guide.

This feature requires the Smart Data Extraction add-on module, which is a separate download from the base Server SDK. See the modules documentation for download and installation instructions.

The Java Call

Copied to clipboard

The Returned JSON

Copied to clipboard

This is illustrative output for a sample checking statement, trimmed to one header row and one data row. The structure follows the published JSON specification.

Reading the Result

Copied to clipboard

Each row is a tr element. Each cell is a th or a td with a rowStart and colStart grid index and a rect of [left, top, right, bottom] in PDF points. The page number sits on the page object as pageNumber.

Read the coordinateSystem property before you use any rect. The value PDF puts the origin at the bottom left, and originTop puts it at the top left. In the sample, the amount is the cell at colStart 2 in the data row, so your column mapping does not depend on text position.

Store pageNumber and rect with the value you post to your ledger. The call options and the full reference are in the table extraction docs.

Tables That Break Across Pages

Copied to clipboard

A table that continues across a page break tests structure recovery harder than any single-page statement. The JSON represents a table that breaks across pages as multiple table elements that share one groupId. Each fragment keeps its own page number and bounding box.

That gives you one logical table for reconciliation and one audit record per row that still names its source page. Without the merge, the Total row on the next page is an orphan with nothing to check against.

This example covers Apryse Server SDK integration using C# on .NET 8 or 9 on Windows (x64). For other languages or platforms, see the Server SDK get-started guide. C# setup is in the .NET (8 and 9) get-started guide.

This example needs the same Smart Data Extraction add-on module, a separate download. See the modules documentation.

The sample document is a segment revenue note from an annual report. The table has a two-row header with a merged Fiscal Year cell, and it breaks after the Wealth Management row on page 41.

The C# Call and Merge

Copied to clipboard

Fragments in the Returned JSON

Copied to clipboard

This is illustrative output, trimmed to the two table fragments. Both carry groupId 7. The first fragment shows the merged header through rowSpan and colSpan, and the continuation on page 42 starts with a data row. If a continuation repeats the header, the code drops it.

The Merged Result

Copied to clipboard

The code prints one JSON line per row, in page order. Each line keeps its page and rect, so a reviewer can open page 42 and find the Total row at that position.

Capital Markets and Total now sit in the same table as the rows above them. Add the 2025 column and compare it with the Total row: 4,218.6 plus 3,102.4 plus 2,319.3 equals 9,640.3. Table results carry no confidence score, so a check like this one is how you test them.

Filings and Prospectuses at Scale

Copied to clipboard

A prospectus or a regulatory filing runs hundreds of pages, with headings, nested lists, footers, and dozens of tables. Document structure recognition parses that logical structure, including headers, footers, lists, images, paragraphs, and styling, so your code navigates by section instead of by page offset.

Scans add a second problem. OCR turns pixels into characters, and extraction decides which characters form a row, a column, or a heading. The OCR versus intelligent extraction guide walks through that split for financial documents.

Volume is your code's job. The Apryse Server SDK provides no work queue, job scheduler, or batch orchestration, so you own the loop: read each filing from your store, call the extraction, write the JSON, and retry failures. Initialize PDFNet once at process startup and reuse it for every document. The SDK keeps no state between documents, so you choose whether workers run sequentially, in threads, in separate processes, or across machines.

Trial keys have unlimited access, but trial output is capped at 100 pages and an evaluation watermark page is inserted. Evaluate a long filing in sections with the page range option in the workflow guide.

KYC Packets and Onboarding Documents

Copied to clipboard

A KYC packet arrives as one PDF with mixed pages: an ID, a signed form, a covering letter, and supporting statements. The first step is document classification, which labels each page against 24 predefined categories, including id, form, and letter. Every label carries a confidence score. You can set a minimum threshold so labels below it drop out of the JSON.

The second step is key-value extraction on the pages you routed. It reads labeled values, such as a customer name, an account number, or a date of birth, without a template and without form fields in the document. Each extracted pair carries a confidence score.

Confidence scores are model output, not a guarantee. Set a threshold that matches your own risk rules, and send anything below it to your review step. Apryse reads the document. Your app decides whether a customer passes onboarding. Trade confirmations follow the same pattern: classify the page, then read the keyed values.

Three kinds of extraction get blurred in finance. Table extraction rebuilds a table's rows and columns. Key-value extraction reads a labeled value. One-shot schema extraction, where you name the fields you want and a model returns them in a single call, is not something Apryse offers. If you need a fixed schema, map the key-value and table JSON to your own schema in your code.

Read the key-value extraction docs and the document classification docs for the calls and options.

Structured Output for Reconciliation

Copied to clipboard

Every element in the JSON sits under a page with a pageNumber and carries a rect. Store both with each value you load into your ledger, and any figure traces back to its page and position. The SDK supplies the coordinates. Your data model keeps them.

When someone asks where 12,480.00 came from, your record answers with the file, page 3, and the cell's bounding box. That audit trail comes from the record you build, not from the SDK alone.

Table extraction exports to JSON or to XLSX. The tabular engine returns JSON, and a separate call writes an Excel file of the same tables. JSON suits programmatic use, and XLSX suits analysts. A pandas DataFrame also exports to Excel in one line, so Excel export is not the reason to choose the SDK. The structure recovery is.

Whole-document conversion is a different add-on. The Structured Output Module converts a complete PDF to XLSX, DOCX, PPTX, or HTML as an editable document for people. It does not return structured table data, and Smart Data Extraction does not convert a PDF to Word, Excel, or PowerPoint. Choose by the output you need: JSON your code reads, or an editable file a person opens.

For the full pattern, see how to convert PDF content into structured JSON.

Data Residency and Audit Reliability

Copied to clipboard

Smart Data Extraction runs inside your own infrastructure: an on-premises server, a cloud VM you control, or a container you orchestrate. The Apryse Server SDK processes documents locally, so there is no HTTP round-trip and no document content transmitted to Apryse.

By default, Apryse collects limited usage metadata: API call names and counts, page counts, SDK version, and SDK language. It never collects document contents. If your security team needs a telemetry-free license, request a no-tracking trial key from Apryse.

The repeatability argument applies to the structure layer. Rerun the same file on the same SDK version and the structure layer returns the same result, which gives your audit trail a stable base. Classification and key-value results are model output. They carry confidence scores, and you set the threshold. The JSON also records the engine that produced it (producer) and the JSON schema version (schemaVersion) in its document properties, so store both with each result.

For the evaluator's checklist: Apryse supplies building blocks for your own document workflow, not a turnkey platform. Smart Data Extraction does not queue jobs, route documents, store results, or run review. Your application owns those steps.

To test an extraction SDK against your own worst statement, use this guide on how to evaluate an extraction SDK. For the buyer-level view, read about financial services document workflows.

Frequently Asked Questions

The JSON returns a table that breaks across pages as multiple table elements that share one groupId. Merge them by groupId in your code, and keep each fragment's pageNumber and bounding box, as the filing example does. If a continuation page repeats the header row, drop it during the merge.

A table element whose rows hold cells, each with a row and column index, a bounding box, and the text inside, under a page that carries its page number. Header cells are typed th and data cells td. Merged cells carry rowSpan and colSpan values. The document properties record the coordinate system, so you know whether y values grow up or down the page.

Key-value extraction, document classification, and form field identification return a confidence score, and table extraction does not. For table values, reconcile against totals and subtotals in your own code, as the filing example does with the Total row.

Yes. Smart Data Extraction runs inside your own infrastructure as part of the Apryse Server SDK, and document content is not transmitted to Apryse. Deploy it on an on-premises server, a cloud VM you control, or a container. By default, Apryse collects limited usage metadata such as call names and counts, page counts, SDK version, and SDK language, but never document contents, and a no-tracking key is available on request.

No. Apryse does not offer one-shot schema extraction. Key-value extraction returns the labeled pairs it finds, and table extraction returns rows and columns, so your code maps both to your own schema. If you use a language model for that mapping, send it the recovered structure instead of raw page text.

Run both examples against your own statements and filings.