Improve image caption styling

This commit is contained in:
George Kalampokis 2022-06-07 14:52:48 +03:00
parent 7985b13cca
commit 0235406246
2 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@ public class WordBuilder {
XWPFParagraph captionParagraph = mainDocumentPart.createParagraph();
captionParagraph.setAlignment(ParagraphAlignment.CENTER);
captionParagraph.setSpacingBefore(0);
captionParagraph.setStyle("Caption");
XWPFRun captionRun = captionParagraph.createRun();
captionRun.setText("Image " + imageCount);