Scenario in benchmark · Converting a complex PDF into clean Markdown with a hosted API · Version 1

A document containing a code block

A document contains a code block.

Capability: Code Extraction1 pinned test case per toolNeutral global definition →

What we check

  1. Whether the code remains a distinct preformatted or fenced block.
  2. Whether line breaks and indentation are preserved.
  3. Whether the code is not reflowed into ordinary prose.
  4. Whether the code block is still recognisable as code rather than flattened text.

Exact wording, inputs, fixture state, expected output and detailed grading remain at the test-case level and may be withheld while the benchmark version is active. The scenario and its evaluation intent are public.

How the tools performed

One row per tool, from its current published Result for this scenario and benchmark version. Open a row for the full summary and the exact counts.

Failed · 10
Adobe PDF Extract APIFailed1 of 1 test case failedDid not preserve the code block as a preformatted or fenced block.View Result →

The nine-line Python block was collapsed into five ordinary paragraphs, the shell block into two lines, and no output line carried leading whitespace. The whitespace-insensitive character content still matched the source, but the block structure was lost.

0 Pass · 1 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

Extend AIFailed1 of 1 test case failedLost the code’s formatting and changed characters when converting this PDF to Markdown.View Result →

Both snippets came back as ordinary text rather than code blocks.

0 Pass · 1 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

FirecrawlFailed1 of 1 test case failedKept both code blocks fenced but removed their indentation.View Result →

Statement line breaks survived, yet the Python code no longer parses.

0 Pass · 1 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

Landing AIFailed1 of 1 test case failedDid not keep the PDF’s code blocks intact in Markdown.View Result →

With no fenced or other preformatted wrapping, the code rendered as paragraph text.

0 Pass · 1 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

Mistral AIFailed1 of 1 test case failedReturned code without fences and flattened its nested indentation when converting the PDF to Markdown.View Result →

The Python code was no longer runnable, and the shell command lost its continuation indentation.

0 Pass · 1 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

Nutrient.ioFailed1 of 1 test case failedLost code-block structure in both its Build API and Data Extraction output.View Result →

The Build API returned the Python snippet as a table without code fences or indentation; Data Extraction's mode for complex documents fenced it but joined every line together.

0 Pass · 1 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

PDF VectorFailed1 of 1 test case failedTurned the document’s code blocks into plain text.View Result →

The default output had no code fences and lost indentation; the pro and max models did the same.

0 Pass · 1 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

ReductoFailed1 of 1 test case failedDid not preserve the code block as fenced or preformatted Markdown.View Result →

The returned file had no fences or indented code lines, while the source block’s line breaks remained and the output also altered code tokens, including `window = reload_window(reset_at, margin_minutes=45)` becoming `window reload_window (reset_at, margin_minutes=45)`.

0 Pass · 1 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

UnstructuredFailed1 of 1 test case failedReturned both code blocks in the test PDF as single lines, with their line breaks and indentation gone.View Result →

The indented Python function no longer parses, and the shell command that continued onto a further line lost that continuation.

0 Pass · 1 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

Upstage AIFailed1 of 1 test case failedLost code-block formatting and indentation when converting the PDF to Markdown.View Result →

The code’s characters and line breaks survived.

0 Pass · 1 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

Passed · 2
DatalabPassed1 of 1 test case passedReturned all three code blocks of the document as fenced code blocks with their line breaks intact.View Result →

The Python function kept its 0, 4, 8 and 12-space indentation and the blank lines inside it, matching the source page.

1 Pass · 0 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

LlamaParsePassed1 of 1 test case passedReturned both code listings in the document as fenced blocks tagged as Python and shell, and kept the Python body at its three indent levels of 4, 8 and 12 spaces.View Result →

Two small whitespace differences remain inside the fences: one blank line was dropped, and the shell continuation line sits at four spaces rather than six.

1 Pass · 0 Fail · 0 Not gradable · 1 of 1 assessed · 1 of 1 gradable

Failures first, then A–Z within each group. Not a ranking. Assessed = Pass + Fail + Not gradable; Gradable = Pass + Fail, both out of the Result’s pinned test cases.

No published Result yet (2): GPT-5.6 terra, Tensorlake.

No published Result does not tell you whether a tool has been tested.

Test design

Pinned test cases
1
Disclosure
1 public · 0 withheld
Capabilities exercised here
Code Extraction

How the results are graded

  • Pass the test-case expectations hold.
  • Fail an expectation demonstrably does not hold.
  • Not gradable the evidence cannot establish the outcome.

Version 1 uses test-case expectations; no scenario rubric is pinned. Benchmark methodology →

A document containing a code block in Converting a complex PDF into clean Markdown with a hosted API | AI Demos