浏览代码

3.4.4 update-20250514 内嵌字体

xiaofei 1 月之前
父节点
当前提交
4a0adffb73

+ 2 - 2
distributed-print-business/src/main/java/com/qmth/distributed/print/business/util/CreatePrintPdfUtil.java

@@ -123,7 +123,7 @@ public class CreatePrintPdfUtil {
         Double lineHeightTimes = basicTemplate == null || basicTemplate.getLineHeightTimes() == null ? 1 : basicTemplate.getLineHeightTimes();
 
         // 空格
-        Paragraph blank = new Paragraph(" ");
+        Paragraph blank = new Paragraph(" ", PdfFillUtils.textFont12);
 
         // 基础信息表格
         PdfPTable basicTable = PdfFillUtils.createTable(6);
@@ -285,7 +285,7 @@ public class CreatePrintPdfUtil {
     private void generatePackagePDF(Document document, PdfWriter pdfWriter, PdfPackageDto pdfPackageDto) {
         try {
             // 空格
-            Paragraph blank = new Paragraph(" ");
+            Paragraph blank = new Paragraph(" ", PdfFillUtils.textFont12);
 
             if (pdfPackageDto.getTag()) {
                 Paragraph para = new Paragraph();