Bladeren bron

pdf预览电签位置更改

lvy 2 maanden geleden
bovenliggende
commit
ffaf72481c

+ 16 - 16
blade-service/blade-manager/src/main/java/org/springblade/manager/utils/PdfAddimgUtil.java

@@ -70,22 +70,22 @@ public class PdfAddimgUtil {
         }
     }
 
-    public static void main(String[] args) throws Exception {
-        String pdfUrl = "C://upload///pdf//1701069578999693447.pdf";
-        String keyword = "1703655562291445760,1703655562417274880,1703655562333388800,1703655562459217920,1823610566992723968";
-        Map<Long, TextdictInfo> textMap = new HashMap<>();
-        textMap.put(1703655562291445760L, new TextdictInfo(){{
-            setPyzbx(0.0f);
-            setPyzbx(0.0f);
-            setType(2);
-        }});
-        textMap.put(1703655562417274880L,new TextdictInfo(){{
-            setPyzbx(0.0f);
-            setPyzbx(0.0f);
-            setType(6);
-        }});
-        pdfAddImgInfo(pdfUrl, keyword, textMap);
-    }
+//    public static void main(String[] args) throws Exception {
+//        String pdfUrl = "C://upload///pdf//1701069578999693447.pdf";
+//        String keyword = "1703655562291445760,1703655562417274880,1703655562333388800,1703655562459217920,1823610566992723968";
+//        Map<Long, TextdictInfo> textMap = new HashMap<>();
+//        textMap.put(1703655562291445760L, new TextdictInfo(){{
+//            setPyzbx(0.0f);
+//            setPyzbx(0.0f);
+//            setType(2);
+//        }});
+//        textMap.put(1703655562417274880L,new TextdictInfo(){{
+//            setPyzbx(0.0f);
+//            setPyzbx(0.0f);
+//            setType(6);
+//        }});
+//        pdfAddImgInfo(pdfUrl, keyword, textMap);
+//    }
     public static void pdfAddImgInfoNew(String pdfUrl, String keyword, Map<Long, TextdictInfo> textMap ,String signImg) throws Exception {
         File pdfFile = new File(pdfUrl);
         byte[] pdfData = new byte[(int) pdfFile.length()];