From 38929aa1f4f4a017be4d2e93c32165b9e51f635d Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 21 Jul 2020 13:21:17 +0000
Subject: [PATCH] In Arbeit: PDF Theme

---
 src/de/uhilger/wbx/web/AdocServlet.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/de/uhilger/wbx/web/AdocServlet.java b/src/de/uhilger/wbx/web/AdocServlet.java
index be8437d..2b55c81 100644
--- a/src/de/uhilger/wbx/web/AdocServlet.java
+++ b/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) {

--
Gitblit v1.9.3