Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 867 Bytes

File metadata and controls

16 lines (10 loc) · 867 Bytes

Asciidoctor Maven Plugin: AsciiDoc to PDF Book Example

An example project that demonstrates how to convert AsciiDoc to PDF using Asciidoctor PDF with the Asciidoctor Maven plugin. This example produces a book and make use of a custom Asciidoctor PDF theme (defined in src/theme). The same document is rendered twice:

  • Without the theme configuration, output is target/generated-docs-default-theme/example-manual.pdf

  • With the theme configuration, output is target/generated-docs-custom-theme/example-manual.pdf

Usage

Convert the AsciiDoc to PDF using Asciidoctor PDF by invoking the process-resources goal (configured as the default goal):

$ mvn

Open the file target/generated-docs-custom-theme/example-manual.pdf in your PDF viewer to see the generated PDF.