Convert MDOC to JPG
Turn MDOC files into JPEG files. Typeset in Libertinus Serif with examples in DejaVu Sans Mono 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 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
Manual pages as JPG images.Each page of the mdoc manual becomes one JPG, at 150 dpi and quality 90.
What you get
The manual is typeset as a document, not as a terminal page. Text is set in Libertinus Serif, and examples are set in DejaVu Sans Mono. The pages are A4 unless you set Page size to Letter.
Sections become headings and tag lists become definition lists. Flags, arguments and command names appear as code, and column lists become tables.
The result is one or more files, with one JPG for each page.
Options
Set Pages to convert only some pages, using single pages and ranges such as 1-3,7. Every page is read when it is left out.
Set Resolution (dpi) from 36 to 600. Higher is sharper and makes a bigger file. 150 reads well on screen, and 300 is the usual choice for print.
Set Page size to A4, Letter or Auto. With Auto, each page takes the size of its own content.
Set Width (px) to give the exact width of the result, from 1 to 20000. The height follows the aspect ratio unless you also give it, in which case the picture can be stretched.
Quality and size
Quality runs from 1 to 100 and defaults to 90. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
JPG is lossy and has no transparency. To change an image you already have, see compress JPG or resize JPG.
MDOC and JPG.What each format is, and the options this conversion takes.
- 01 · dpi
Resolution (dpi)
How many pixels each inch of the page becomes when it is drawn as a picture. Higher is sharper and makes a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print.
36 to 600 default 150 - 02 · 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.
- 03 · 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.
- 04 · quality
Quality
How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
1 to 100 default 90 - 05 · width
Width (px)
The exact width of the result in pixels. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.
1 to 20000
The formats
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
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
In your code.The same MDOC to JPG conversion through the API, for your app or your agent.
$ cv convert report.mdoc report/ --to jpeg$ cv convert report.mdoc report/ --to jpegQuestions.What people ask about MDOC to JPG.
You get one JPG for each page of the manual. Use Pages to convert only some of them.
No. It is typeset as a document, with headings, definition lists, code and tables.
A4 by default. Set Page size to Letter for 8.5 × 11 in, or to Auto so each page takes the size of its own content.
Raise Resolution (dpi). 300 is the usual choice for print. A higher value also makes a bigger file.