xwh il y a 4 ans
Parent
commit
8ce00d6712

+ 3 - 3
kmall-admin/src/main/java/com/kmall/admin/controller/exportPDF/ExportPDFController.java

@@ -30,8 +30,8 @@ public class ExportPDFController {
     @Value("${font.url}")
     private String fontUrl;
 
-    @Value("${upload.dir}")
-    private String uploadDir;
+//    @Value("${upload.dir}")
+//    private String uploadDir;
 
 
     //打印pdf
@@ -46,7 +46,7 @@ public class ExportPDFController {
             return null;
         }
 
-
+        String uploadDir="";
         if ("1".equals(head)) {
             Map<String, Object> model = new HashMap<>();
             model.put("dto", pdfGoodsDto);

+ 1 - 1
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/type/PDFWrite.java

@@ -24,7 +24,7 @@ public class PDFWrite {
         Font FontChinese11 = new Font(bfHei, 11);
 
         String path = uploadDir;
-        FileOutputStream out = new FileOutputStream(path);
+//        FileOutputStream out = new FileOutputStream(path);
 
         doc.setMargins(0,0,0,0);
 

+ 1 - 1
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/type/PDFWrite_12.java

@@ -22,7 +22,7 @@ public class PDFWrite_12 {
         Font FontChinese11 = new Font(bfHei, 11);
 
         String path = uploadDir;
-        FileOutputStream out = new FileOutputStream(path);
+//        FileOutputStream out = new FileOutputStream(path);
 
         doc.setMargins(0,0,0,0);
 

+ 1 - 1
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/type/PDFWrite_18.java

@@ -23,7 +23,7 @@ public class PDFWrite_18 {
         com.lowagie.text.Font FontChinese11 = new com.lowagie.text.Font(bfHei, 11);
 
         String path = uploadDir;
-        FileOutputStream out = new FileOutputStream(path);
+//        FileOutputStream out = new FileOutputStream(path);
 
         doc.setMargins(0,0,0,0);
 

+ 1 - 1
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/type/PDFWrite_2.java

@@ -21,7 +21,7 @@ public class PDFWrite_2 {
         Font FontChinese11 = new Font(bfHei, 11);
 
         String path = uploadDir;
-        FileOutputStream out = new FileOutputStream(path);
+//        FileOutputStream out = new FileOutputStream(path);
 
         doc.setMargins(0,0,0,0);
 

+ 1 - 1
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/type/PDFWrite_36.java

@@ -23,7 +23,7 @@ public class PDFWrite_36 {
         Font FontChinese11 = new Font(bfHei, 11);
 
         String path = uploadDir;
-        FileOutputStream out = new FileOutputStream(path);
+//        FileOutputStream out = new FileOutputStream(path);
 
         doc.setMargins(0,0,0,0);
 

+ 1 - 1
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/type/PDFWrite_4.java

@@ -21,7 +21,7 @@ public class PDFWrite_4 {
         Font FontChinese11 = new Font(bfHei, 11);
 
         String path = uploadDir;
-        FileOutputStream out = new FileOutputStream(path);
+//        FileOutputStream out = new FileOutputStream(path);
 
         doc.setMargins(0,0,0,0);
 

+ 1 - 1
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/type/PDFWrite_9.java

@@ -22,7 +22,7 @@ public class PDFWrite_9 {
         Font FontChinese11 = new Font(bfHei, 11);
 
         String path = uploadDir;
-        FileOutputStream out = new FileOutputStream(path);
+//        FileOutputStream out = new FileOutputStream(path);
 
         doc.setMargins(0,0,0,0);
 

+ 1 - 1
kmall-admin/src/main/java/com/kmall/admin/utils/pdf/type/PDFWrite_nohead_36.java

@@ -29,7 +29,7 @@ public class PDFWrite_nohead_36 {
         Font FontChinese11 = new Font(bfHei, 11);
 
         String path = uploadDir;
-        FileOutputStream out = new FileOutputStream(path);
+//        FileOutputStream out = new FileOutputStream(path);
 
 
         writer.setPdfVersion(PdfWriter.PDF_VERSION_1_2);//版本(默认1.4)

+ 1 - 1
kmall-manager/src/main/resources/conf/print.properties

@@ -1,2 +1,2 @@
 font.url=/static/font/ams1015.ttf
-upload.dir=E:/demo/code_1.pdf
+#upload.dir=E:/demo/code_1.pdf