Convert TOML to PDF

Turn TOML 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 TOML files on the dialor turn it to pick what to do

A TOML file as a readable PDF.Every key and value is kept as written, laid out in tables and headings.

  1. What you get

    A PDF typeset on A4 pages, or on Letter pages if you set Page size to letter. Each object lists its plain values first as key: value. Small objects and lists of plain values sit nested under their key.

    The larger parts follow under headings named after their keys. Headings go down to six levels, and nested lists take over below that.

  2. How lists become tables

    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.

  3. What stays the same

    Every key and value is written exactly as the file has it. Long numbers are not rounded, and numbers keep their underscores and their hexadecimal, octal or binary form. Dates and times stay as written, as text.

    Tables and keys keep their written order. Dotted keys become nested objects. Comments are dropped.

    A file with more than 100,000 values fails with resource_limit.

  4. Page size

    Page size sets the size of 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.

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

  1. 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.

    • a4 210 × 297 mm.
    • letter 8.5 × 11 in.
    • auto Each page takes the size of its own content.
    a4 · letter · auto default a4

The formats

From · TOML

TOML

TOML configuration files, the format of Cargo and pyproject.

Extensions
.toml
MIME type
application/toml
Kind
Text and data
To · 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

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

terminal
$ cv convert report.toml report.pdf
$ cv convert report.toml report.pdf

Questions.What people ask about TOML to PDF.

01OF 04

No. Comments are dropped. Keys and values are kept.

No. Dates stay as text, as written. Numbers keep their underscores and their hexadecimal, octal or binary form, and long numbers are not rounded.

Yes. Set Page size to letter. The pages are then 8.5 × 11 in.

The file holds more than 100,000 values. The conversion stops with resource_limit at that point.

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