File conversion

DataMind turns a PDF document into text, OCR output or Markdown. This page covers the two conversion modes, the settings a document can need, and what a conversion gives back.

The conversion runs as part of other flows; for example, a PDF uploaded as a training card becomes Markdown this way before its text joins the card (Upload files as training cards).

Run a conversion

  1. Choose a mode: the standard mode for quick text extraction, or the layout-aware mode when the document's layout and tables matter.
  2. Set the settings the document needs, or keep the defaults.
  3. Start the conversion with the PDF, whole or as a page range.
  4. Read the result as a structured result, as Markdown, or as both; a long conversion can be followed while it runs, or cancelled.

Choose a conversion mode

ModeWhat it doesUse it when
StandardFast text extraction with a per-page OCR fallback for scanned pages.The document has a readable text layer and speed matters.
Layout-awareLayout and table-aware extraction; slower, higher fidelity.Headings, lists and tables must survive into the output.

Settings for a conversion

Read the result

Follow a conversion while it runs

When a conversion cannot finish

What happensWhat you see
The file does not carry the PDF signature near its start.File is not a PDF. The refusal comes before any work starts.
The PDF cannot be opened: damaged, incomplete or password-protected.corrupt, truncated, or password-protected PDF.
The first page asked for is beyond the document.The refusal names the first page and the document's page count.
The last page asked for is before the first.The range is refused; the last page must be at or after the first.
The connection goes away while the conversion runs.Client disconnected; the conversion stops.
A layout-aware conversion runs past its time budget.The conversion stops with a timeout.
The result is read before the conversion is done.Conversion is still in progress.
The conversion was cancelled.Conversion was cancelled; there is no result.
The conversion stops with no more specific reason.Conversion failed.
The job is gone: finished and cleared, or never existed.The job is reported as not found.
Cancellation is asked for after the conversion already finished.The cancellation is refused as already finished; read the result instead.

Questions, answered

Which conversion mode should I choose?

Use the standard mode when the PDF has a readable text layer and you want a quick result. Use the layout-aware mode when headings, lists and tables must survive into the output. It is slower: roughly two to three seconds per page on a two-core machine.

Can I convert only some pages of a document?

Yes. Set a first page and a last page; pages count from 1. A last page past the end is clamped to the document's last page rather than refused, and the last page must be at or after the first. A first page beyond the document is refused, naming the page count.

What happens to a scanned page?

It is read with OCR when the OCR setting is automatic (the default) or force. Automatic falls back to OCR when a page's own text is shorter than the text character threshold. With OCR off, a scanned page comes back with no text and its method reads none.

What does the OCR confidence score mean?

It is the mean word confidence, from 0 to 100, across the OCR on that page. Treat 90 and above as a clean scan, 70 to 90 as usable but with scattered errors, and below 70 as poor: text built from it will mislead. A page with no OCR carries no score.

Why is a page number missing from a layout-aware result?

An empty page produces no entry, so a gap in the page numbers means an empty page. A page that failed is counted separately in the result and skipped, and the rest of the document still converts.

Can I get Markdown instead of a structured result?

Yes. Ask for Markdown to get one Markdown document, or for both to get the structured result with its Markdown alongside. The standard mode returns the structured result by default; the layout-aware mode returns Markdown by default.

How long after a conversion finishes can I read the result?

Five minutes after the progress stream reports done. After that the job is cleared and the result is no longer available; convert the document again if you still need it.

Can I cancel a conversion while it runs?

Yes, while it is processing. The cancellation is accepted with Cancellation requested, and the conversion stops at its next checkpoint. A conversion that already finished cannot be cancelled, and the refusal says it already finished. A cancelled conversion has no result.

My progress stream dropped. Can I resume it?

Reconnect with the stream and it resumes from the last event you saw, so no progress is lost. Do not leave it long: a running conversion whose listeners have all left is cancelled about ten seconds after the last one disconnects.

Why was my file refused?

A file that does not carry the PDF signature near its start is refused with File is not a PDF. A PDF that is damaged, incomplete or password-protected is refused as corrupt, truncated, or password-protected PDF. Export the document as a PDF again, or get a clean copy without a password, and retry.

Does the conversion change my PDF?

No. The conversion reads a copy of the file, and that copy is deleted when the conversion ends. Your document itself is never changed.

Is there a file size or page limit?

Not from the conversion itself. It keeps no queue and sets no file-size or page limit; the flow that asks for a conversion applies its own limits, so check the feature you are using.