run.addNewRPr().addNewNoProof(); CTText text = run.addNewInstrText(); text.setSpace(Space.PRESERVE);
CTText ctText = r1.getCTR().addNewInstrText(); ctText.setStringValue("PAGE \\* MERGEFORMAT"); ctText.setSpace(SpaceAttribute.Space.Enum.forString("preserve")); if(hf.getFontSize()>1){ r1.setFontSize(hf.getFontSize()); CTText ctText = r1.getCTR().addNewInstrText(); ctText.setStringValue("NUMPAGES \\* MERGEFORMAT "); ctText.setSpace(SpaceAttribute.Space.Enum.forString("preserve")); if(hf.getFontSize()>1){ r1.setFontSize(hf.getFontSize()); CTText ctText = r1.getCTR().addNewInstrText(); ctText.setStringValue("PAGE \\* MERGEFORMAT"); ctText.setSpace(SpaceAttribute.Space.Enum.forString("preserve")); if(hf.getFontSize()>1){ r1.setFontSize(hf.getFontSize()); CTText ctText = r1.getCTR().addNewInstrText(); ctText.setStringValue("NUMPAGES \\* MERGEFORMAT "); ctText.setSpace(SpaceAttribute.Space.Enum.forString("preserve")); if(hf.getFontSize()>1){ r1.setFontSize(hf.getFontSize()); CTText ctText = r1.getCTR().addNewInstrText(); ctText.setStringValue("PAGE \\* MERGEFORMAT"); ctText.setSpace(SpaceAttribute.Space.Enum.forString("preserve")); if(hf.getFontSize()>1){ r1.setFontSize(hf.getFontSize());
CTFtnEdn ctfInstance = CTFtnEdn.Factory.newInstance(); BigInteger id = new BigInteger("1"); ctfInstance.setId(id); CTP ctp = ctfInstance.addNewP(); ctp.addNewPPr().addNewPStyle().setVal("FootnoteText"); CTR ctr = ctp.addNewR(); ctr.addNewRPr().addNewRStyle().setVal("FootnoteReference"); ctr.addNewFootnoteRef(); CTText cttext = ctp.addNewR().addNewT(); cttext.setStringValue("This is the text in the footnote"); cttext.setSpace(SpaceAttribute.Space.PRESERVE);
cttext.setSpace(SpaceAttribute.Space.PRESERVE);
run.addNewRPr().addNewNoProof(); CTText text = run.addNewInstrText(); text.setSpace(Space.PRESERVE);
run.addNewRPr().addNewNoProof(); CTText text = run.addNewInstrText(); text.setSpace(Space.PRESERVE);
CTText ctText = r1.getCTR().addNewInstrText(); ctText.setStringValue("PAGE \\* MERGEFORMAT"); ctText.setSpace(SpaceAttribute.Space.Enum.forString("preserve")); if(hf.getFontSize()>1){ r1.setFontSize(hf.getFontSize()); CTText ctText = r1.getCTR().addNewInstrText(); ctText.setStringValue("NUMPAGES \\* MERGEFORMAT "); ctText.setSpace(SpaceAttribute.Space.Enum.forString("preserve")); if(hf.getFontSize()>1){ r1.setFontSize(hf.getFontSize()); CTText ctText = r1.getCTR().addNewInstrText(); ctText.setStringValue("PAGE \\* MERGEFORMAT"); ctText.setSpace(SpaceAttribute.Space.Enum.forString("preserve")); if(hf.getFontSize()>1){ r1.setFontSize(hf.getFontSize()); CTText ctText = r1.getCTR().addNewInstrText(); ctText.setStringValue("NUMPAGES \\* MERGEFORMAT "); ctText.setSpace(SpaceAttribute.Space.Enum.forString("preserve")); if(hf.getFontSize()>1){ r1.setFontSize(hf.getFontSize()); CTText ctText = r1.getCTR().addNewInstrText(); ctText.setStringValue("PAGE \\* MERGEFORMAT"); ctText.setSpace(SpaceAttribute.Space.Enum.forString("preserve")); if(hf.getFontSize()>1){ r1.setFontSize(hf.getFontSize());