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();
|
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||||
XWPFRun run = paragraph.createRun();
|
XWPFRun run = paragraph.createRun();
|
||||||
if (item != null)
|
if (item != null)
|
||||||
run.setText(" " + item);
|
run.setText("" + item);
|
||||||
run.setFontSize(11);
|
run.setFontSize(11);
|
||||||
return paragraph;
|
return paragraph;
|
||||||
});
|
});
|
||||||
|
@ -115,7 +115,7 @@ public class WordBuilder {
|
||||||
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||||
paragraph.setStyle("Heading2");
|
paragraph.setStyle("Heading2");
|
||||||
XWPFRun run = paragraph.createRun();
|
XWPFRun run = paragraph.createRun();
|
||||||
run.setText(" " + item);
|
run.setText("" + item);
|
||||||
// run.setBold(true);
|
// run.setBold(true);
|
||||||
// run.setFontSize(12);
|
// run.setFontSize(12);
|
||||||
return paragraph;
|
return paragraph;
|
||||||
|
@ -124,7 +124,7 @@ public class WordBuilder {
|
||||||
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||||
paragraph.setStyle("Heading3");
|
paragraph.setStyle("Heading3");
|
||||||
XWPFRun run = paragraph.createRun();
|
XWPFRun run = paragraph.createRun();
|
||||||
run.setText(" " + item);
|
run.setText("" + item);
|
||||||
// run.setBold(true);
|
// run.setBold(true);
|
||||||
// run.setFontSize(11);
|
// run.setFontSize(11);
|
||||||
return paragraph;
|
return paragraph;
|
||||||
|
@ -140,14 +140,14 @@ public class WordBuilder {
|
||||||
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||||
paragraph.setStyle("Heading5");
|
paragraph.setStyle("Heading5");
|
||||||
XWPFRun run = paragraph.createRun();
|
XWPFRun run = paragraph.createRun();
|
||||||
run.setText(" " + item);
|
run.setText("" + item);
|
||||||
return paragraph;
|
return paragraph;
|
||||||
});
|
});
|
||||||
this.options.put(ParagraphStyle.HEADER6, (mainDocumentPart, item) -> {
|
this.options.put(ParagraphStyle.HEADER6, (mainDocumentPart, item) -> {
|
||||||
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||||
paragraph.setStyle("Heading6");
|
paragraph.setStyle("Heading6");
|
||||||
XWPFRun run = paragraph.createRun();
|
XWPFRun run = paragraph.createRun();
|
||||||
run.setText(" " + item);
|
run.setText("" + item);
|
||||||
return paragraph;
|
return paragraph;
|
||||||
});
|
});
|
||||||
this.options.put(ParagraphStyle.FOOTER, (mainDocumentPart, item) -> {
|
this.options.put(ParagraphStyle.FOOTER, (mainDocumentPart, item) -> {
|
||||||
|
@ -159,7 +159,7 @@ public class WordBuilder {
|
||||||
this.options.put(ParagraphStyle.COMMENT, (mainDocumentPart, item) -> {
|
this.options.put(ParagraphStyle.COMMENT, (mainDocumentPart, item) -> {
|
||||||
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
XWPFParagraph paragraph = mainDocumentPart.createParagraph();
|
||||||
XWPFRun run = paragraph.createRun();
|
XWPFRun run = paragraph.createRun();
|
||||||
run.setText(" " + item);
|
run.setText("" + item);
|
||||||
run.setItalic(true);
|
run.setItalic(true);
|
||||||
return paragraph;
|
return paragraph;
|
||||||
});
|
});
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue