Page 1 of 1

Retrieving the Exact symbol from the Docx4j..

PostPosted: Tue Apr 01, 2014 11:19 pm
by dazzfayaz
Hi Jason,

I am able to get the underlying code and symbol font of the inserted symbol from INSERT SYMBOL in docx.
Is there any way to get the exact symbol in the given font..

I have this piece of code to get the symbol code and its font.

R.Sym sym = ((R.Sym) ((JAXBElement) symbolObject).getValue());
String symbol = sym.getChar();
String font = sym.getFont();

If i insert "-->" (arrow) from Wingdings in docx, from the code mentioned above, i am able to get its underlying code as "FOEO" and font as "Wingdings" .
But is there any way to get the "-->" (arrow) in webdings font directly into java string.

Please find the attached docx for your reference.

Any info in this is greatly appreciated..

Thanks