AI & XML / Comparative study of PDF-to-AI converters / Study context 2 Study context

This investigation is an exploratory cross-section and documented reference test. It examines selected conversion tools, specific configurations and target formats using a specially developed, digitally generated, partially tagged PDF. It claims neither completeness, general representativeness nor a permanently valid tool ranking.

Results apply only to the documented combination of input file, tool or model, product interface, settings, prompt, target format and test date. Other PDFs, including scans, OCR-processed files, tagged PDFs, PDF/UA files or PDF/A variants, can produce very different results. Cloud and AI-assisted systems can also change quickly through model replacements, product updates or internal processing changes.

Target formats are also comparable only to a limited extent. Markdown is readable and practical for many RAG and development workflows, but cannot represent many complex structures fully without extensions, HTML or custom conventions. The study therefore evaluates complete conversion paths, not products alone: input, tool, configuration and target format.

Octopus, a system developed by the study’s own publishers, is included. This creates a potential conflict of interest, explicitly disclosed here. A uniform test document, documented criteria, chapter-level evaluation and use-case-adjustable weighting aim to make assessment transparent. Complete objectivity nevertheless cannot be claimed.

The test file, criteria and conversion outputs are available to download in chapter "B Download supporting materials". Third parties can therefore test more tools, models, prompts, formats and alternative workflows using the same input, reproduce results and extend the investigation.

2.1 Limits and differences of target formats

Conversion formats differ greatly in purpose and structural expressiveness: Markdown, HTML, XML, DOCX, EPUB, JSON, LaTeX or application-specific intermediate formats. Suitability depends on whether documents will be published, edited, archived, searched, analyzed or processed in RAG.

The study focuses on Markdown, DocBook XML and EXHTML, which are not equivalent and have different aims. Markdown is primarily readable and easy to generate. XML formats express far richer semantic, hierarchical and reference structures. EXHTML is the Octopus pipeline’s information-rich intermediate format, including extra structural, layout and provenance data. Direct file comparison is therefore limited.

2.2 Markdown: widespread but limited

Many providers and AI systems use Markdown by default for understandable reasons: readability, easy generation, straightforward processing and support from many development, search and RAG tools. For headings, paragraphs, lists, links, emphasis and image references, it can be highly practical.

Yet Markdown is neither uniform nor semantically complete, and dialects differ significantly. The CommonMark core includes headings, paragraphs, lists, links, images, emphasis and code blocks, but lacks native syntax for many advanced structures. GitHub Flavored Markdown adds simple tables, strikethrough text and task lists. Pandoc Markdown adds footnotes, complex tables, mathematics, superscripts and subscripts, definitions and more. Without specifying the dialect, "Markdown" therefore does not define an unambiguous target format.

Markdown faces fundamental limits on complex documents, including:

  • tables with row or column spans or multilevel headers,

  • clearly typed document titles, chapters and subchapters,

  • footnotes, endnotes and reference links,

  • structured bibliography with separate author, title, year and publisher fields,

  • links between citations and bibliography,

  • index entries with resolvable targets,

  • semantically marked text boxes, warnings or definitions,

  • language and writing direction information,

  • page coordinates, printed page number, PDF page index and exact source locations,

  • complex mathematics,

  • accessibility information and PDF tags,

  • distinguishing existing alt text from generated image descriptions.

Some dialects add information through extensions, embedded HTML, YAML metadata, comments or custom conventions. This often sacrifices general portability: one application may understand an extension while another ignores it, displays it as text or removes it in conversion.

2.3 Recognition error or target format limit?

Evaluation must distinguish two error types:

  • The tool fails to recognize a PDF structure.

  • The tool recognizes it but cannot express it fully in the target format.

These must not be equated. Recognizing a table span but flattening it due to Markdown limits differs from not recognizing the table at all. The same applies to footnote links, bibliographic metadata, text boxes, page coordinates and index targets.

This reveals a fundamental problem in current conversion workflows: Choosing Markdown early can lose structural information before chunking, retrieval or RAG begins. Incorrect or incomplete RAG data may result not just from poor PDF recognition, but from an intermediate format lacking expressive power.

Markdown can still suffice for simple RAG: headings, paragraphs, lists, simple tables and image links work well. But citation, exact provenance, complex tables, references, accessibility, republication or multiple output formats may require richer intermediate data. One approach is to generate information-rich XML, JSON or application-specific representation first, then derive simplified Markdown for chunking or display.

2.4 Consequences for interpreting the ranking

The ranking must not be read as an isolated converter assessment. Each evaluated item is a complete conversion path:

PDF input → tool or model → configuration and prompt → target format → generated file

Good Markdown shows useful output for the tested workflow, not necessarily complete, lossless retention of every source detail. Conversely, rich XML or EXHTML may be more complex and technically demanding even if a simple RAG pipeline does not immediately need it.

back to top