asciidoctor / asciidoctorj-pdf

AsciidoctorJ PDF bundles the Asciidoctor PDF RubyGem (asciidoctor-pdf) so it can be loaded into the JVM using JRuby.
Apache License 2.0
36 stars 17 forks source link

How to use theme from classpath? #41

Open david0 opened 4 years ago

david0 commented 4 years ago

I would like to use a custom theme thats located in the root of the classpath. How to do that? I always get: SCHWERWIEGEND: could not locate or load the built-in pdf themeour-theme.yml'; reverting to default theme`

This is what I tried:

Attributes attributes = new Attributes();
attributes.setAttribute("pdf-style", "our-theme.yaml")

Options options = new Options();
options.setBackend("pdf");
options.setAttributes(attributes);

asciidoctor.convertFile(file, options)