Convert PDF to JSONL

Turn PDF documents into JSONL. One JSON line per page with its size and every word with its box in points, measured from the top left.

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 word on every page, as JSON lines.One line per page, with its size and each word's box in points.

  1. What you get

    One JSONL file with one JSON object per line. Each line is one page of the PDF.

    A line holds the size of the page and every word on it. Each word comes with its box, in points, measured from the top left of the page.

  2. What a scan gives you

    A scanned page without a text layer has no words. Its line is still written, with the page size, but the list of words is empty.

  3. Options

    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 PDF that asks for a password fails with input_encrypted. Enter it in Password to open the file. The password is used for this one job and deleted when it ends.

    A file that cannot be parsed stops the conversion with input_corrupted.

PDF and JSONL.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 · JSONL

JSON Lines

JSON Lines, one JSON object per line, the format of logs and datasets.

Extensions
.jsonl .ndjson
MIME type
application/jsonl
Kind
Text and data

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

terminal
$ cv convert report.pdf report.jsonl
$ cv convert report.pdf report.jsonl

Questions.What people ask about PDF to JSONL.

01OF 04

One page. It has the size of the page and every word with its box in points, measured from the top left.

The page is a scan without a text layer. Such a page has no words in its line.

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

The file asks for a password. Enter it in Password and convert it again.