Convert MDOC to PDF

Turn MDOC files into PDF. Typeset on A4 pages unless page_size says letter as a document rather than a terminal manual, with the sections as headings, tag lists as definition lists, flags, arguments and command names as code, displays as code blocks and column lists as tables.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

A manual page as a typeset document.Sections become headings. Commands and flags come out as code.

  1. What you get

    One PDF that reads as a document, not as a terminal manual. The sections of the manual page become headings.

    Tag lists become definition lists. Flags, arguments and command names are set as code, displays become code blocks, and column lists become tables.

  2. Page size

    Pages are A4 by default, which is 210 × 297 mm. Set Page size to Letter for 8.5 × 11 in pages, the standard in North America.

    Set Page size to Auto and each page takes the size of its own content.

MDOC 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 · MDOC

BSD mdoc Manual

Manual pages written in the semantic mdoc macros of BSD systems and macOS.

Extensions
.mdoc
MIME type
text/x-mdoc
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 MDOC to PDF conversion through the API, for your app or your agent.

terminal
$ cv convert report.mdoc report.pdf
$ cv convert report.mdoc report.pdf

Questions.What people ask about MDOC to PDF.

01OF 04

No. It is typeset as a document, with headings, definition lists, code blocks and tables in place of terminal formatting.

A4, unless you set Page size to Letter or Auto.

Flags, arguments and command names are set as code.

They become tables.

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