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.
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.
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.
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.
- 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.
- 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
Fixed-layout pages that look the same everywhere. The exchange format for anything that will be printed or signed.
- Extensions
- MIME type
- application
/pdf - Kind
- Documents
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.
$ cv convert report.pdf report.jsonl$ cv convert report.pdf report.jsonlQuestions.What people ask about PDF to JSONL.
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.