codewing 8 éve
szülő
commit
f8761a24f0

+ 2 - 2
src/main/java/br/eti/mertz/wkhtmltopdf/wrapper/Pdf.java

@@ -105,11 +105,11 @@ public class Pdf implements PdfService {
 
         commandLine.add(wrapperConfig.getWkhtmltopdfCommand());
 
+        commandLine.addAll(params.getParamsAsStringList());
+        
         if (hasToc)
             commandLine.add("toc");
 
-        commandLine.addAll(params.getParamsAsStringList());
-
         for (Page page : pages) {
             if (page.getType().equals(PageType.htmlAsString)) {