Hi Support,
With Aspose.Words Java library, I can add comments to one paragraph for Word document, but when I save the document to PDF format, the comments do not show up in PDF output. Please confirm it is a defect?
Thanks.
Please reference the code of creating comment:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.write("This paragraph will have a comment.");
Run runObject = new Run(doc);
Comment comment = new Comment(doc);
comment.setAuthor("");
comment.setInitial("");
comment.getParagraphs().add(new Paragraph(doc));
runObject.setText("This is very good");
comment.getFirstParagraph().getRuns().add(runObject);
builder.getCurrentParagraph().appendChild(comment);
builder.writeln();
builder.getDocument().save("c:\test.doc");
builder.getDocument().save("c:\test.pdf");