WebBox Klassenbibliothek
ulrich@undisclosed
2020-05-28 bf412a896b52694891bc4b72dee092e026f6e667
Revert "Fehler bei PDF-Umwandlung behoben"

This reverts commit da6cfb12c67b12c9e7a3b7abd8687ad7453308bc.
1 files modified
30 ■■■■ changed files
src/de/uhilger/wbx/web/AdocServlet.java 30 ●●●● patch | view | raw | blame | history
src/de/uhilger/wbx/web/AdocServlet.java
@@ -126,22 +126,24 @@
   * nach PDF transformiert werden soll
   */
  private void transform(String fileName, String backend) {    
    Map<String, Object> attributes = attributes()
                                      .sourceHighlighter("highlightjs")
                                      .asMap();
    Map<String, Object> options;
    /*
    Map<String, Object> attributes = new HashMap<>();
    attributes.put("no_footer", false);
    //attributes.put("source_highlighter", "highlightjs");
    Map<String, Object> options = new HashMap<>();
    options.put("attributes", attributes);
    options.put("in_place", false);
    if(null != backend) {
      options = options()
                  .inPlace(false)
                  .backend(backend)
                  .attributes(attributes)
                  .asMap();
    } else {
      options = options()
                  .inPlace(false)
                  .attributes(attributes)
                  .asMap();
      options.put("backend", backend);
    }
    */
    Map<String, Object> attributes = attributes().sourceHighlighter("highlightjs")
                                       .asMap();
    Map<String, Object> options = options().inPlace(false).attributes(attributes)
                                       .asMap();
    
    Asciidoctor asciidoctor = create();    
    asciidoctor.convertFile(new File(fileName), options);