Asciidoctor PDF Direct AsciiDoc-to-PDF converter with YAML themes and a Prawn-based renderer.
Overview Asciidoctor PDF is an open-source converter that produces PDF directly from AsciiDoc. It plugs into Asciidoctor's PDF backend and uses the Prawn library instead of routing documents through DocBook, XSL-FO or LaTeX. A separate theme controls the generated document's appearance.[1]
Contents Source-driven PDF production The converter turns the source document into a finished PDF using its own rendering pipeline. This removes an intermediate typesetting format from that workflow, rather than converting a pre-existing PDF into an editable project. It remains a publishing component of the Asciidoctor ecosystem; authors keep the AsciiDoc source and theme as the inputs from which output is regenerated.[1]
Themes and design control Themes are YAML data files, with built-in choices for screen, print, sans-serif text and broader character coverage. A theme can extend another theme or start from scratch. Although the terminology resembles CSS and SASS, the theme language is not CSS, so an existing web stylesheet cannot simply be reused unchanged. Themes influence fonts, spacing, running content and page settings, but more substantial layout changes can require extending the converter.[3]
Pagination and portability The documented renderer constraints matter for long technical documents. Footnotes become endnotes at the chapter or document end rather than appearing beneath the current page. A table cell taller than a page is truncated with a warning, and oversized row spans also have limitations. Multiple columns are not supported in the book doctype. Copying text from output may not preserve source line wrapping, especially in code examples; a visually plausible PDF is therefore not proof of faithful text extraction.[2]
Runtime and optional additions The converter runs with Ruby or JRuby and is distributed as a RubyGem. Required library dependencies are installed with the converter, but optional features need additional components. These include syntax highlighting, automatic hyphenation, image-decoding acceleration and PDF optimization. Mathematical and diagram extensions are also separate integrations. A workflow depending on these features needs its dependency set preserved alongside the document and theme, rather than only the main converter version.[4]
Licensing and substitution Asciidoctor PDF is MIT-licensed. For a team already authoring in AsciiDoc, it can substitute for an AsciiDoc-to-PDF pipeline built around Pandoc and an external PDF engine. The assessment concerns the final publishing task, not interchangeable templates or identical pagination. Its native theme and documented layout restrictions should be evaluated against representative tables, notes and page designs before adopting it for an existing publication.[1] [2] [3] [5] [6]
Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.