Login  Register

Re: AsciidoctorJ + Springboot + custom style/theme

Posted by Jeno on Jul 18, 2019; 10:40am
URL: https://discuss.asciidoctor.org/AsciidoctorJ-Springboot-custom-style-theme-tp6964p7002.html

Okay, so the solution so far:

        val attributes = attributes()
        attributes.attribute("pdf-stylesdir", "/ABSOLUTE-PATH or RELATIVE-PATH")
        attributes.attribute("pdf-style", "base")

        val options = options()
                .backend("pdf")
                .toStream(baos)
                .safe(SafeMode.UNSAFE)
                .attributes(attributes).get()

        asciidoctor.convert(inStr, options)