Convert DJOT to PNG
Turn DJOT files into PNG files. Typeset in Libertinus Serif with code in DejaVu Sans Mono on A4 pages unless page_size says letter, with headings, lists, tables, code, footnotes and math.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop DJOT files on the dialor turn it to pick what to do
Djot pages as PNG images.Each page of your document is drawn as a PNG, set in a serif face.
What you get
One PNG for each page. The text is typeset in Libertinus Serif, with code in DejaVu Sans Mono. Headings, lists, tables, code, footnotes and math are all drawn on the page.
Pages are A4 unless you set Page size to Letter. With the auto choice, each page takes the size of its own content. The images are drawn at 150 dpi unless Resolution (dpi) or Width (px) says otherwise.
What it leaves behind
Raw blocks written for other formats are dropped. Images that were not uploaded become their description, so the text of the description appears where the picture would be.
Options
Set Resolution (dpi) from 36 to 600. Higher values give a sharper picture and a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print.
Set Pages to convert only some pages, with single pages and ranges such as 1-3,7. Every page is read when it is left out.
Set Width (px) for an exact width from 1 to 20000 pixels. The height follows the aspect ratio unless you also give it, and then the picture can be stretched.
DJOT and PNG.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 · 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
Djot
Djot, a lightweight markup language by the author of pandoc.
- Extensions
- .dj .djot
- MIME type
- text
/x -djot - Kind
- Text and data
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
In your code.The same DJOT to PNG conversion through the API, for your app or your agent.
$ cv convert report.dj report/ --to png$ cv convert report.dj report/ --to pngQuestions.What people ask about DJOT to PNG.
You get one PNG for each page. A long document gives several files.
Yes. Set Pages to a range such as 1-3,7, and only those pages are converted.
Images that were not uploaded become their description. Raw blocks for other formats are dropped.
Yes. Raise Resolution (dpi) to 300, the usual choice for print. The files get bigger.