|
|
@@ -31,10 +31,10 @@ public class AdminDocEditorController {
|
|
|
private final HtmlConvertToPdf htmlConvertToPdf;
|
|
|
|
|
|
@AnonymousGetMapping("/convert-pdf")
|
|
|
- public void convertToPdf(@RequestParam String srcFileName, @RequestParam String destFileNmae) {
|
|
|
+ public void convertToPdf(@RequestParam String srcFileName, @RequestParam String destFileName) {
|
|
|
String path = "/Users/sakuya/Downloads/";
|
|
|
String srcFilePath = path + srcFileName + ".html";
|
|
|
- String destFilePath = path + destFileNmae + ".pdf";
|
|
|
+ String destFilePath = path + destFileName + ".pdf";
|
|
|
try {
|
|
|
htmlConvertToPdf.converPdf(FileUtil.readString(new File(srcFilePath), "UTF-8"), destFilePath);
|
|
|
} catch (Exception e) {
|