| | |
| | | * nach PDF transformiert werden soll |
| | | */ |
| | | private void transform(String fileName, String backend) { |
| | | Map<String, Object> attributes; |
| | | File outFile = new File(fileName); |
| | | Map<String, Object> attributes = attributes().attribute("pdf-themesdir", outFile.getParent()).attribute("pdf-theme","test").sourceHighlighter("highlightjs") |
| | | File pdfStyles = new File(outFile.getParentFile(), "custom-theme.yml"); |
| | | if(pdfStyles.exists()) { |
| | | attributes = attributes() |
| | | .attribute("pdf-themesdir", outFile.getParent()) |
| | | .attribute("pdf-theme","custom") |
| | | .sourceHighlighter("highlightjs") |
| | | .asMap(); |
| | | } else { |
| | | attributes = attributes() |
| | | .sourceHighlighter("highlightjs") |
| | | .asMap(); |
| | | } |
| | | Map<String, Object> options; |
| | | if(null != backend) { |
| | | options = options().inPlace(false) |