Dear All,
While I try to add a text(special Character) using webdings as shown in the attachment, I am not getting the correct text.
Please advice me how to resolve this.
Thanks & Regards,
B.V.Suresh Babu.
org.docx4j.wml.RPr objRpr1 = factory.createRPr();
RStyle rStyle1 = factory.createRStyle();
rStyle1.setVal("wipo-icon1");
objRpr1.setRStyle(rStyle1);
org.docx4j.wml.Text t1 = factory.createText();
t1.setValue("");
org.docx4j.wml.R run1 = factory.createR();
run1.setRPr(objRpr1);
run1.getContent().add(t1);
paragraph.getContent().add(run1);
<w:style w:type="character" w:customStyle="1" w:styleId="wipo-icon1">
<w:name w:val="wipo-icon1" />
<w:basedOn w:val="DefaultParagraphFont" />
<w:rPr>
<w:rFonts w:ascii="Webdings" w:hAnsi="Webdings" w:hint="default" />
<w:sz w:val="24" />
<w:szCs w:val="24" />
</w:rPr>
</w:style>
Users browsing this forum: Bing [Bot], Google [Bot] and 82 guests