Skip to content

Files

Latest commit

 

History

History

asciidoctor-pdf-with-theme-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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.