AI & XML / Comparative study of PDF-to-AI converters

Our apprentice Elena presented initial results of her comparative study of PDF-to-AI-format converters at XML Prague 2026 back in June. 

Elena’s study examines modern approaches to automated conversion from PDF into XML, Markdown and structured formats suitable for AI. It compares traditional toolchains, OCR-based methods, AI-assisted systems and our own Octopus Service for structural fidelity, semantic quality and suitability for XML-based publishing workflows.

Particularly impressive: the study was produced during her apprenticeship, combining scholarly work with practical XML and AI expertise from real publishing projects.

Study contents

1. Brief description of the study
2. Study context
3. Analysis procedure
4. The dataset
5. Selecting conversion tools
6. Prompts for AI-assisted tools
7. Test document structure
8. Scoring and weighting system
9. Conversion results
10. Overall result
11. Processing time
12. Reproducibility
13. Privacy
14. Conclusions
A Glossary
B Download supporting materials

Introduction

Introduction

Digital preparation of PDFs is central to many publishing, scholarly and technical workflows. Content is increasingly converted into structured formats such as Markdown or XML rather than merely read or archived, enabling further processing, analysis, searching and use in AI-assisted systems. This is especially relevant to automated chunking, retrieval, knowledge extraction and Retrieval-Augmented Generation (RAG).

Underlying data quality is essential for RAG systems. They can supply precise, traceable answers only when source documents are prepared completely and correctly. Answer quality thus depends on the dataset as well as the language model. Lost content, incorrectly reconstructed tables, faulty heading hierarchies or disconnected footnotes and references enter the knowledge base. Retrieval then cannot reliably find appropriate passages, and the model receives incomplete or incorrectly structured context.

PDFs pose a particular challenge because they primarily represent content as visually designed pages. People usually recognize headings, paragraphs, tables, footnotes, lists, images, multicolumn layouts and references, but technical systems must reconstruct them. A tool may recognize visible text yet lose logical structure. This can suffice for simple extraction, but is problematic for RAG, XML workflows and structured publishing, which need the text’s function within the document as well as the text itself.

Chunking makes this especially clear. RAG systems divide documents into smaller units later searched and used as response context. Meaningful chunks must follow the original document logic, guided by headings, paragraphs, tables, lists, footnotes and references. Losing these structures produces chunks that are thematically vague, incomplete or out of context. The system may retrieve passages without providing the right information in its proper context.

Against this background, the study examines PDF-to-structured-format tools, including traditional toolchains and OCR-based and AI-assisted systems. It uses a specially created PDF test document with typical scholarly, technical, legal and publishing structures: heading hierarchies, text emphasis, tables, lists, footnotes, references, images, multilingual content, mathematics, text boxes, bibliography and index. It aims to assess the tested conversion paths in the prescribed scenario and reveal each approach’s strengths and weaknesses.

A points system with dynamic weighting enables transparent, rule-based evaluation. Results can be compared overall and adapted to specific use cases, since publication types and subsequent workflows prioritize different requirements. Formulas, tables, references and footnotes are particularly important in scholarly publications, whereas running text, chapter structure, typographic emphasis or stable reading order may be decisive elsewhere.

The study therefore aims not only to rank the documented scenario, but to show which conversion tools suit which requirements and what data quality each tested configuration provides for structured downstream processing and RAG. Only complete, cleanly structured and semantically correct source data enable reliable, verifiable, context-aware AI answers.

back to top