Commit 854d6e1b authored by Pamelpreet Jhinger's avatar Pamelpreet Jhinger
Browse files

given full path to pandoc

parent 06b62da3
Pipeline #64978 passed with stages
in 1 minute and 50 seconds
......@@ -26,8 +26,7 @@ public class PDFResultPage implements Page {
writer.println("#Sorry");
writer.println("Sorry, we didn't understand " + query + ".");
} else {
String pdfname = query + ".pdf";
resp.setHeader("Content-Disposition", "inline;filename=\"" + pdfname + "\"");
resp.setHeader("Content-Disposition", "inline;filename=\"" + query + ".pdf\"");
File md = File.createTempFile(query, ".md");
md.deleteOnExit();
......@@ -40,7 +39,7 @@ public class PDFResultPage implements Page {
pdf.deleteOnExit();
ProcessBuilder processBuilder =
new ProcessBuilder("pandoc", md.getAbsolutePath(),
new ProcessBuilder("/usr/bin/pandoc", md.getAbsolutePath(),
"-f", "markdown", "-o", pdf.getAbsolutePath());
try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment