Convert ASCIIDOC to PNG
Turn ASCIIDOC files into PNG files. Typeset in Libertinus Serif with code in DejaVu Sans Mono on A4 pages unless page_size says letter, with attributes filled in, conditional blocks resolved and a table of contents when the document asks for one, keeping sections, lists, tables, source blocks, admonitions and footnotes.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop ASCIIDOC files on the dialor turn it to pick what to do
AsciiDoc pages as PNG images.Each page of the typeset document becomes its own PNG file.
What you get
The AsciiDoc is typeset on A4 pages in Libertinus Serif, with code in DejaVu Sans Mono. Each page is written as one PNG, so a longer document gives you several files.
Attributes are filled in and conditional blocks are resolved. A table of contents appears when the document asks for one. Sections, lists, tables, source blocks, admonitions and footnotes are kept.
What changes
Images in the document become their description instead of the picture. A document that includes other files is refused, so the content must sit in a single file.
The pages are drawn at 150 dpi unless you say otherwise.
Size and pages
Set Page size to Letter for 8.5 × 11 in pages, or to auto so each page takes the size of its own content. A4 is the default.
Set Resolution (dpi) between 36 and 600. Higher is sharper and makes a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print.
Set Width (px) for an exact width in pixels. The height follows the aspect ratio unless you also give it, and then the picture can be stretched. Set Pages to a list such as 1-3,7 to convert only some pages.
ASCIIDOC 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
AsciiDoc
AsciiDoc, the markup of many software manuals.
- Extensions
- .adoc .asciidoc
- MIME type
- text
/x -asciidoc - 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 ASCIIDOC to PNG conversion through the API, for your app or your agent.
$ cv convert report.adoc report/ --to png$ cv convert report.adoc report/ --to pngQuestions.What people ask about ASCIIDOC to PNG.
One PNG per page. A document that runs over several pages gives several files.
No. Each image becomes its description in the text.
No. Documents that include other files are refused.
Set Page size to Letter. The default is A4.