|
|
@@ -193,7 +193,6 @@ 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);
|
|
|
document.newPage();
|
|
|
@@ -423,6 +422,7 @@ public class PdfUtil {
|
|
|
PdfPTable imageInnerTable = new PdfPTable(imageNumsOfRow);
|
|
|
imageInnerTable.setSplitRows(true);
|
|
|
imageInnerTable.setSplitLate(false);
|
|
|
+ imageInnerTable.setWidthPercentage(100F);
|
|
|
for (String image : imageList) {
|
|
|
Image imageData = convertFileToByteArray(new File(image));
|
|
|
if (imageData != null) {
|
|
|
@@ -430,10 +430,11 @@ public class PdfUtil {
|
|
|
}
|
|
|
PdfPCell innerCell = new PdfPCell(imageData);
|
|
|
innerCell.setNoWrap(false);
|
|
|
- innerCell.setPaddingTop(8f);
|
|
|
+ /* innerCell.setPaddingTop(8f);
|
|
|
innerCell.setPaddingLeft(8f);
|
|
|
innerCell.setPaddingRight(8f);
|
|
|
- innerCell.setPaddingBottom(8f);
|
|
|
+ innerCell.setPaddingBottom(8f);*/
|
|
|
+
|
|
|
innerCell.setBorder(Rectangle.NO_BORDER);
|
|
|
innerCell.setHorizontalAlignment(Element.ALIGN_CENTER);
|
|
|
innerCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
|