Convert JSON to PDF
Turn JSON files into PDF. Typeset on A4 pages unless page_size says letter, with long tables running across pages under a repeated header row.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop JSON files on the dialor turn it to pick what to do
Your JSON, typeset as a PDF.Every key and value is kept exactly as written, on A4 pages by default.
What you get
A PDF with the contents of your JSON laid out as pages. Each object lists its plain values first as key: value. Larger parts follow under headings named after their keys.
Keys keep their order. Long numbers are not rounded and dates stay text.
How lists are laid out
A list of objects that hold only plain values becomes one table. It has a column for every key in first-seen order, and numbers are aligned right. Long tables run across pages under a repeated header row.
A list of lists of plain values becomes a table without a header row. The objects of any other list each get a heading numbered from 1.
Page size
Set Page size to choose the pages. A4 is 210 × 297 mm and is the default. Letter is 8.5 × 11 in. Auto gives each page the size of its own content.
When it stops
A file with more than 100,000 values stops with
resource_limit. A key repeated in one object stops the conversion withinput_corrupted.To go the other way, use PDF to JSON.
JSON and PDF.What each format is, and the options this conversion takes.
- 01 · page_size
Page size
The size of the pages written. A4 is the standard in most of the world and Letter in North America.
a4210 × 297 mm.letter8.5 × 11 in.autoEach page takes the size of its own content.
The formats
JSON
JSON, the data format of every API.
- Extensions
- .json
- MIME type
- application
/json - Kind
- Text and data
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
In your code.The same JSON to PDF conversion through the API, for your app or your agent.
$ cv convert report.json report.pdf$ cv convert report.json report.pdfQuestions.What people ask about JSON to PDF.
No. Every key and value is written exactly as the file has it. Long numbers are not rounded and dates stay text.
Set Page size to Letter. The pages are then 8.5 × 11 in.
A key is repeated in one object. The conversion stops when that happens.
A file with more than 100,000 values stops with resource_limit.