AI & XML / Comparative study of PDF-to-AI converters / Selection of conversion tools
Six different conversion tools were selected for this study:
ChatGPT
Gemini
Mistral Document AI
OpenDataLoader
Poppler/Pandoc
Octopus
The aim was to represent different technical approaches to PDF conversion rather than compare individual products. The tools serve as selected examples of approaches, enabling comparison within the defined test setup.
The solutions fall into three broad approaches:
Traditional toolchains (PDF parsing and character recognition)
OCR-based technologies
LLM-assisted document analysis (multimodal vision-language models)
Table 5.1: conversion approaches and classification of the tools examined
Conversion approach | Octopus | Mistral | Gemini | Poppler/Pandoc | ChatGPT | OpenDataLoader |
|---|---|---|---|---|---|---|
Traditional toolchains | x | x | x | |||
OCR-based technologies | x | x | x | x | (x) | |
LLM-assisted document analysis | x | x | x | (x) |
Traditional toolchains focus on technical PDF analysis and rule-based content extraction. Examples include Poppler/Pandoc, Octopus and standard-mode OpenDataLoader. PDF parsing, layout analysis, document-level character recognition and rule-based transformations produce structured formats, emphasizing reproducible, controllable processing.
OCR-based technologies mainly serve scans and image-based PDFs. Optical Character Recognition precedes further processing. Gemini, ChatGPT, Mistral and sometimes Octopus integrate OCR to extract text where none is embedded. Since ChatGPT and Gemini pipelines are not publicly documented, statements about their internal OCR components and procedures are assumptions only.
The third group comprises LLM-assisted document processing systems, particularly Gemini, ChatGPT and Mistral. These combine OCR, layout analysis and language models for semantic interpretation as well as reading. They recognize complex structures, reconstruct heading hierarchies, interpret tables and output Markdown or XML. Understanding content, beyond text extraction, is central.
The tools cover these approaches in different degrees, representing a broad range of current conversion technology. Established open-source tools and modern AI solutions allow investigation of each approach’s strengths and weaknesses in PDF-to-structured-format conversion. The following sections detail the six product families and their document processing.
5.1 ChatGPT
OpenAI’s ChatGPT is a large multimodal language model. The study used prompt-directed conversion with GPT-5.3 on the paid Business plan. Here it makes continual structural decisions beyond simple text recognition, reconstructing the test document from visible features and prompt rules.
Different thinking-time settings were used for Markdown and XML. PDF-to-Markdown used reasoning at the highest thinking time, while PDF-to-XML used the default. In the latter mode, answers arrive without detailed calculation steps visibly running in the background.
Processing starts with the PDF and a detailed prompt defining interpretation, structure, cleaning and output requirements. ChatGPT’s internal document pipeline is not publicly documented, so the following proposed stages are assumptions only.
ChatGPT first captures document content, then analyzes structure and layout, considering element positions and relationships. It identifies headings, paragraphs, lists, tables, captions, headers and footers, and determines reading order—especially important for multiple columns, graphics and complex pages.
Logical structure is then reconstructed by relating the recognized elements: heading hierarchy, paragraph-to-section association and table rows and columns. The goal is a coherent logical document model.
The model is converted to the target format, mapping structure to XML or Markdown rules: hierarchical headings, structured lists and tables in target syntax.
5.2 Gemini
Google’s Gemini is also a large multimodal language model, controlled by a detailed prompt to preserve PDF structure in Markdown or XML. The study used Gemini 3 Flash in Thinking mode, particularly suited to complex layout and structural decisions.
Processing begins with PDF and prompt. Gemini’s internal processing is also undocumented publicly, so these stages likewise remain assumptions.
The full document is read and divided into pages and visual/content segments. Multimodal analysis considers text, layout and visual cues together rather than functioning as ordinary OCR. Thinking mode progressively infers structure rather than making superficial decisions, particularly for columns, nested lists, formulas, tables and multilingual passages.
Detailed structure analysis recognizes headings, numbering, typography, spacing and positions to infer hierarchy. OCR results are compared with visual layout to correct or contextualize errors, followed by reading-order reconstruction.
Finally, structures become semantic Markdown/XML elements such as headings, paragraphs, lists and tables. Contextual model decisions address OCR uncertainty for consistent, structure-preserving output.
5.3 Mistral Document AI
Here Mistral Document AI represents a new OCR generation combining optical character recognition and model-based document interpretation. Unlike classic conversion, it analyzes documents visually and linguistically as well as reading them technically.
The study used Mistral Playground’s Document AI with the latest OCR model available on March 26, 2026: Mistral OCR 3, model ID mistral-ocr-2512.
Uploading the PDF to Playground starts processing in a cloud environment requiring no local installation or extra infrastructure. This study used that cloud processing. Document AI automatically analyzes the uploaded PDF page by page with the OCR model.
Mistral OCR goes beyond recognizing individual characters or words, combining visual analysis and language-model interpretation to reconstruct structural and semantic relationships. Headings, paragraphs, simple tables and layout relationships can often be identified more reliably than by traditional OCR.
Combining OCR and large language models is central: beyond traditional linear text output, Mistral OCR also attempts to capture logical document structure.
Mistral is more automated here than ChatGPT or Gemini because Document AI predetermines many stages. This simplifies and speeds processing but reduces direct control. Prompt-directed models allow precise treatment instructions; Mistral relies more on internal model rules.
Two Markdown outputs were produced: one complete document and separate pages.
5.4 OpenDataLoader
Hancom Inc.’s OpenDataLoader is an open-source classical toolchain for structured PDF extraction. Unlike basic parsers, it targets modern AI applications, producing semantically usable structured output beyond plain text.
It analyzes pages as layout surfaces, identifying blocks, headings, paragraphs, lists, tables, images and other elements. Bounding boxes provide exact coordinates, methodologically important because extracted text can later be traced to its original PDF location.
Standard mode is rule-based. An extended XY-Cut layout algorithm recursively divides pages into blocks, determining groupings, adjacent blocks and reading order. Elements are then classified: headings marked, paragraphs merged, lists recognized and tables analyzed.
Optional hybrid mode adds AI or OCR, useful for difficult documents such as scans or complex tables without borders. OCR then uses models supporting over 80 languages.
Only standard mode was used. Hybrid mode requires a language model, complicating issues such as data sovereignty and privacy, so it was not used.
5.5 Poppler/Pandoc
Poppler/Pandoc is a classic technically transparent chain: first read the PDF technically, then convert to another format.
Poppler is freedesktop.org’s open-source PDF library. This pipeline mainly uses pdftohtml to analyze internal page descriptions and map them to HTML, considering text positions, page regions, fonts and some layout features. Extraction follows PDF structure rather than language-model interpretation.
John MacFarlane’s universal converter Pandoc then reads Poppler’s HTML and converts headings, paragraphs, lists and tables to Markdown syntax.
A lightweight Python script orchestrates stages sequentially. Python does no content processing, only pipeline control and automation of single and batch jobs.
The approach combines two specialized tools: Poppler extracts and visualizes PDF structure as HTML; Pandoc turns that structure into Markdown.
5.6 Octopus
Our in-house Octopus Service is considered a traditional chain using OCR only in specific cases. PDF-to-EXHTML is only one of many platform paths and functions. Years of our own development allow a more detailed description than for the other tools.
Processing begins at individual PDF characters, already carrying exact coordinates, dimensions, font, size, color and other PDF properties. It starts from actual graphical objects, not words, lines or paragraphs, with every character’s page and position known.
Neighboring characters are grouped into words and then lines. Identical typography forms spans. Lines represent logically connected text, while original character information remains preserved and traceable.
Analysis first stays page-local, grouping lines into headings, paragraphs, lists, table regions or image containers according to geometric relationships and defined structural rules.
Document-wide analysis then recognizes cross-page relationships: split tables, multipage lists, continuing chapters, headers and footers. A table initially recognized as separate page structures is merged into one table across two or more pages.
The result is EXHTML, an XML-based intermediate representation describing complete structure. Central to the pipeline, it preserves far more structural and typographic information than plain text.
EXHTML supports diverse outputs: Markdown, HTML, DOCX, XML vocabularies, EPUB, PDF, SCORM and more. Markdown is only a simplified view and cannot express all EXHTML information. EXHTML remains the richest representation.
Images are processed separately from structure. Embedded images can optionally undergo OCR to extract text and add descriptive information, then integrate it into existing structure. This runs only when needed; text-based PDFs require no OCR.
Octopus PDF conversion is fully deterministic and rule-based, using only PDF information and defined structuring/aggregation rules. Generative AI and machine learning are not part of it. Characters are systematically aggregated into larger, semantically meaningful structures.
This staged pipeline creates a high-quality representation from elementary PDF objects with traceable origins. Octopus preserves both document structures and their relationships to original PDF objects.
A ZIP-based container bundles every processing artifact: intermediate representations, EXHTML, analysis metadata and links from structures to original coordinates. Every generated content item remains traceable to its source region. Retrieval and RAG can therefore cite not just a page but the exact location, creating verifiable references.
Visualization components graphically show provenance. Users can see where a chunk or answer originated; source passages are highlighted directly in the document and traced to original PDF positions.