Reputation: 1429
I am using docx4j 3.1.0 to convert data from xml into word. If there's no content (null) in one field, then it will generate "Click here to enter text" in the exported file. How can I get rid of it?
Upvotes: 2
Views: 941
Reputation: 15878
You can add a file OpenDoPE/placeholder.xml to your classpath, containing for example:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:r xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:rPr>
<w:rStyle w:val="PlaceholderText"/>
</w:rPr>
<w:t> </w:t>
</w:r>
Upvotes: 5