Feed automated processing
Load the content of PDF reports into a script, an ETL job or a document database.
Turn the text of a PDF into structured XML (pages, headings, paragraphs, tables), ready for automated processing. Processed locally in your browser, without uploading the document.
Your files are processed locally in your browser and are never sent to our servers.
Select the pages whose content should be converted to XML. All pages are selected by default.
Drop your file here
Recommended size: up to 100 MB
PDF to XML turns the text of a PDF into structured, tagged data designed to be processed by a program rather than read on screen. Each page, heading, paragraph and table becomes an XML element, with page dimensions and numbered rows and columns. It is an entry point for an integration pipeline, an XSLT transformation or document indexing, prepared in your browser.
The selectable text of the chosen pages is read with its coordinates and rebuilt into blocks: headings (spotted by their character size), paragraphs and tables (spotted by their aligned columns). It is the same model as for the HTML, Markdown and CSV conversions; only the output format changes.
The file starts with an XML declaration in UTF-8. The pdf-document root element carries the number of converted pages; each page is a page element with number, width and height attributes in PDF points. Inside, heading has a level attribute from 1 to 3, paragraph holds a paragraph, and table, with rows and columns attributes, contains numbered row and then cell elements.
Reserved characters (<, >, &, quotes) are escaped so the file stays well-formed and readable by any XML parser. The format is specific to Bethemesh: it does not apply a business schema such as an e-invoice.
The grid shows every page, already selected.
Keep only the pages whose data you need, to lighten downstream processing.
The document.xml file can be validated, transformed with XSLT or loaded into your script.
Load the content of PDF reports into a script, an ETL job or a document database.
Produce another presentation or extract specific fields with a transformation sheet.
Keep a structured text version of PDF documents for full-text search.
The 595.28 × 841.89 point dimensions correspond to an A4 page. Each cell gives its column, so it can be found without relying on text order.
Input
A4 page with the title “Prices 2026”, one sentence and a 3-row Product / Price / Quantity tableResult
<pdf-document pages="1">
<page number="1" width="595.28" height="841.89">
<heading level="1">Prices 2026</heading>
<paragraph>Prices include VAT until 31 December.</paragraph>
<table rows="3" columns="3">
<row index="1">
<cell column="1">Product</cell>
…A pdf-document root element, then one page element per page, containing heading, paragraph and table elements; tables contain numbered row and cell elements.
No, it is a simple format specific to the tool. Use an XSLT transformation to adapt it to the schema your system expects.
No. Only page dimensions are provided; content is exported in blocks (headings, paragraphs, cells).
Yes: it starts with an XML declaration in UTF-8 and every reserved character is escaped.
An error, because there is no text to structure. Make it searchable with OCR PDF before converting.
No. The document model and the XML file are produced in your browser.
Related tools
Tools similar or complementary to this one.
Convert the text of a PDF into a structured HTML page with headings, paragraphs and tables.
Extract selectable text from a PDF and convert it to Markdown locally, without OCR or uploading the document.
Extract the tables in a PDF into a CSV file to open in Excel, LibreOffice or Google Sheets.
Learn how to visually edit a PDF in your browser: add text and annotations, insert images or signatures, apply watermarks and choose when a specialized tool is better.
Learn why covering text is not enough, how secure PDF redaction removes sensitive information and why sanitization matters before sharing.
Understand why local processing matters for sensitive PDFs, what it reduces, and which privacy precautions remain necessary before sharing a document.
Understand how PDF files are structured, the difference between native and scanned PDFs, and the right operations for merging, reorganizing, converting or completing documents.