Commit b4a09549 authored by Syretta Man's avatar Syretta Man

modified pdf 7

parent 6d16dddf
Pipeline #112998 passed with stages
in 55 seconds
......@@ -96,7 +96,8 @@ public class WebServer {
resp.setContentType("application/pdf");
resp.setHeader("Content-disposition", "attachment; filename=haha.pdf");
ProcessBuilder pb = new ProcessBuilder("pandoc answer.md -f markdown -o answer.pdf");
String path = file.getAbsolutePath();
ProcessBuilder pb = new ProcessBuilder("bash", "-c", "pandoc -s -o answer.pdf " + path);
// String[] cm = {"pandoc", "-s", "-o", "sample.pdf", "answer.md"};
// pb.command(cm);
pb.start();
......
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