Explorar el Código

演练/培训登记簿 图片尺寸调整

jingyuanchao hace 1 año
padre
commit
309d670252

+ 4 - 5
soc-modules/soc-modules-file/src/main/java/com/xunmei/file/utils/PdfUtil.java

@@ -194,7 +194,7 @@ public class PdfUtil {
             PdfPTable innerTable = new PdfPTable(6);
             createPDFCell(tableFont, innerTable, "图片附件", Element.ALIGN_MIDDLE, 1, 1);
             //一行展示一张图片
-            dealEduImageCell(new ArrayList<>(stringList), innerTable, 2, 150, 200);
+            dealEduImageCell(new ArrayList<>(stringList), innerTable, 2, 195, 200);
             document.newPage();
             document.add(innerTable);
         }
@@ -377,9 +377,8 @@ public class PdfUtil {
         for (List<String> stringList : listList) {
             PdfPTable innerTable = new PdfPTable(6);
             createPDFCell(tableFont, innerTable, "图片附件", Element.ALIGN_MIDDLE, 1, 1);
-            innerTable.setSpacingBefore(10f);
             //一行展示一张图片
-            dealEduImageCell(new ArrayList<>(stringList), innerTable, 2, 150, 200);
+            dealEduImageCell(new ArrayList<>(stringList), innerTable, 2, 195, 200);
             document.newPage();
             document.add(innerTable);
         }
@@ -441,8 +440,8 @@ public class PdfUtil {
             innerCell.setPaddingBottom(8f);*/
 
             innerCell.setBorder(Rectangle.NO_BORDER);
-            innerCell.setHorizontalAlignment(Element.ALIGN_CENTER);
-            innerCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
+           /* innerCell.setHorizontalAlignment(Element.ALIGN_CENTER);
+            innerCell.setVerticalAlignment(Element.ALIGN_MIDDLE);*/
             imageInnerTable.addCell(innerCell);
         }
         outCell.addElement(imageInnerTable);