heading changes on export template
This commit is contained in:
parent
0ac5902bfd
commit
9c4d246ef5
|
@ -82,7 +82,7 @@ public class WordBuilder {
|
|||
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||
XWPFRun run = paragraph.createRun();
|
||||
if (item != null)
|
||||
run.setText(" " + item);
|
||||
run.setText("" + item);
|
||||
run.setFontSize(11);
|
||||
return paragraph;
|
||||
});
|
||||
|
@ -115,7 +115,7 @@ public class WordBuilder {
|
|||
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||
paragraph.setStyle("Heading2");
|
||||
XWPFRun run = paragraph.createRun();
|
||||
run.setText(" " + item);
|
||||
run.setText("" + item);
|
||||
// run.setBold(true);
|
||||
// run.setFontSize(12);
|
||||
return paragraph;
|
||||
|
@ -124,7 +124,7 @@ public class WordBuilder {
|
|||
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||
paragraph.setStyle("Heading3");
|
||||
XWPFRun run = paragraph.createRun();
|
||||
run.setText(" " + item);
|
||||
run.setText("" + item);
|
||||
// run.setBold(true);
|
||||
// run.setFontSize(11);
|
||||
return paragraph;
|
||||
|
@ -140,14 +140,14 @@ public class WordBuilder {
|
|||
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||
paragraph.setStyle("Heading5");
|
||||
XWPFRun run = paragraph.createRun();
|
||||
run.setText(" " + item);
|
||||
run.setText("" + item);
|
||||
return paragraph;
|
||||
});
|
||||
this.options.put(ParagraphStyle.HEADER6, (mainDocumentPart, item) -> {
|
||||
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||
paragraph.setStyle("Heading6");
|
||||
XWPFRun run = paragraph.createRun();
|
||||
run.setText(" " + item);
|
||||
run.setText("" + item);
|
||||
return paragraph;
|
||||
});
|
||||
this.options.put(ParagraphStyle.FOOTER, (mainDocumentPart, item) -> {
|
||||
|
@ -159,7 +159,7 @@ public class WordBuilder {
|
|||
this.options.put(ParagraphStyle.COMMENT, (mainDocumentPart, item) -> {
|
||||
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||
XWPFRun run = paragraph.createRun();
|
||||
run.setText(" " + item);
|
||||
run.setText("" + item);
|
||||
run.setItalic(true);
|
||||
return paragraph;
|
||||
});
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue