PDF to XML
Export embedded PDF text to hierarchical, flat or simple XML. Choose standard entities or CDATA and decide whether to include document properties.
Compare XML Layouts for Extracted PDF Text
PDF to XML: how to use it
- Open a local PDF or load the sample.
- Choose an XML schema structure, escaping and metadata setting.
- Convert, review the markup and download the XML for an independent parser.
Limits and notes
One unencrypted PDF up to 50 MB and 100 pages. Exports up to one million embedded text characters and 100,000 source text segments. Graphics-only and scanned pages are marked when they have no embedded text. XML coordinate fields describe baselines and text advances in displayed page points. Line grouping is estimated from the content stream. Output uses a ToolMellow schema with no images, hyperlinks or interactive form controls.
How your privacy works →PDF to XML: common questions
Which layout includes coordinates?
Hierarchical groups coordinate segments inside blocks. Flat records the first baseline of each inferred line. Simple exports page text and page dimensions.
How are rotated pages reported?
The page dimensions use the displayed orientation. Segment positions are measured from the displayed top-left corner in PDF points. The rotation attribute records the page rotation.
What is included in the metadata header?
The header adds readable standard document information fields such as Title, Author, Subject, Keywords, Creator, Producer and dates. Clear the option to omit them.
What is the difference between entities and CDATA?
Both represent text in XML. Entities encode characters like ampersands. CDATA wraps literal text and splits an embedded closing sequence safely.