java - Docx4j removing whitespaces -
when have org.docx4j.wml.text whitespace it's removed.
r creater = wmlobjectfactory.creater(); text createtext2 = wmlobjectfactory.createtext(); createtext2.setspace("preserve"); createtext2.setvalue(" "); creater.getcontent().add(createtext2); p.getcontent().add(toaddindex, creater);
the create text value "{space}", isn't added docx file
createtext2.setspace("preserve");
Comments
Post a Comment