Class CommentsSample

java.lang.Object
org.docx4j.samples.AbstractSample
org.docx4j.samples.CommentsSample

public class CommentsSample extends AbstractSample
Creates a WordprocessingML document from scratch, and adds a comment. Note that only w:commentReference is required <w:p> <w:commentRangeStart w:id="0"/> <w:r> <w:t>hello</w:t> </w:r> <w:commentRangeEnd w:id="0"/> <w:r> <w:rPr> <w:rStyle w:val="CommentReference"/> </w:rPr> <w:commentReference w:id="0"/> </w:r> </w:p>