java - How to write specific symbols to Docx file using docx4j -
i have specific logical symbols ⇒,∨,∧,¬ , want write text these symbols docx document. short symbols ∨,∧,¬ fine, symbol ⇒ overlaps next character
but should like
my code looks
maindocumentpart mdp = wordmlpackage.getmaindocumentpart(); p p = factory.createp(); r run = factory.creater(); p.getcontent().add(run); text text = factory.createtext(); text.setvalue("((q⇒p)∧q)⇒p"); run.getcontent().add(text); mdp.addobject(p);
how correct writing long symbols ⇒?
you can use docx4j code generation want.
create document in word looks how want it, save docx.
to generate code based on docx, 1 of following:
or 2. install/use our word addin; @ http://www.docx4java.org/forums/docx4jhelper-addin-f30/docx4j-helper-addin-v1-final-available-t2253.html
if still having problems, post xml created in word, or code generated following above steps.
Comments
Post a Comment