Examples

Practical snippets for asciidoc-docx. Both directions are supported.

AsciiDoc model to DOCX runs

AsciiDocModel model = new AsciiDocParser().parse("Some *bold* text");
List<Object> runs = new AsciiDocToDocx().convert(model);
// runs are Docx4J R objects you can add to a paragraph

DOCX back to AsciiDoc

DocxToAsciiDoc toAdoc = new DocxToAsciiDoc();
String adoc = toAdoc.convert(wordDocument);

Next steps

  • Getting Started — install and run your first conversion.
  • Features — bidirectional conversion and formatting mapping.
Edit this page