WebBox Klassenbibliothek
ulrich
2020-07-21 38929aa1f4f4a017be4d2e93c32165b9e51f635d
src/de/uhilger/wbx/web/AdocServlet.java
@@ -125,7 +125,8 @@
   * nach PDF transformiert werden soll
   */
  private void transform(String fileName, String backend) {    
    Map<String, Object> attributes = attributes().sourceHighlighter("highlightjs")
    File outFile = new File(fileName);
    Map<String, Object> attributes = attributes().attribute("pdf-themesdir", outFile.getParent()).attribute("pdf-theme","test").sourceHighlighter("highlightjs")
                                       .asMap();
    Map<String, Object> options;
    if(null != backend) {
@@ -138,6 +139,7 @@
    }
    
    Asciidoctor asciidoctor = create();    
    asciidoctor.requireLibrary("asciidoctor-diagram");
    asciidoctor.convertFile(new File(fileName), options);    
  }