Convert PDF to XML

Turn PDF documents into XML. Every text line with its page, position and font as Poppler's pdf2xml XML.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop PDF files on the dialor turn it to pick what to do

Every text line, with its position.One XML file with each line's page, position and font.

  1. What you get

    One XML file in the format of Poppler's pdf2xml. It lists every text line in the PDF with its page, its position on the page and its font.

    The result is data about the text, not a document you read page by page. Use it when you need to know where each line sits.

  2. Scanned pages

    A scanned page has no text layer, so its page comes out empty. The conversion does not read the pictures of the words. If you need text from a scan, ocr PDF first, then convert the result.

  3. Pages and passwords

    Set Pages to convert only some pages. Write single pages and ranges separated by commas, such as 1-3,7. Every page is read when Pages is left out.

    A file that asks for a password opens with the Password option. The password is used for this one job and deleted when it ends. Without it, the conversion stops with input_encrypted.

    A file that cannot be parsed stops with input_corrupted.

PDF and XML.What each format is, and the options this conversion takes.

  1. 01 · pages

    Pages

    Converts only some pages. Write single pages and ranges separated by commas, such as 1-3,7. Every page is read when it is left out.

  2. 02 · password

    Password

    Opens a file that asks for a password. The password is used for this one job and deleted when it ends. Without it, a locked file fails with input_encrypted.

The formats

From · PDF

PDF

Fixed-layout pages that look the same everywhere. The exchange format for anything that will be printed or signed.

Extensions
.pdf
MIME type
application/pdf
Kind
Documents
To · XML

XML

XML documents and data.

Extensions
.xml
MIME type
application/xml
Kind
Text and data

In your code.The same PDF to XML conversion through the API, for your app or your agent.

terminal
$ cv convert report.pdf report.xml
$ cv convert report.pdf report.xml

Questions.What people ask about PDF to XML.

01OF 04

Every text line with its page, its position and its font. The format is Poppler's pdf2xml.

The page is probably a scan without a text layer. Such a page comes out empty.

Yes. Set Pages to a list such as 1-3,7, and only those pages are read.

The file needs a password. Enter it in the Password option and convert it again.

More conversions.Other ways in and out of PDF and XML.