Hi,

I can't really help much there (I don't use annotations myself), I recommend that you get a PDF file that has what you want and then compare yours and that one in PDFDebugger, to see what is missing / different.

Re COSName, if there isn't one, you can always generate it yourself with COSName.getPDFName().

If you feel that a getter/setter is missing in some annotation type, you can always assign directly like this:

annotation.getCOSObject().setItem()

If you got it to work, please create an issue in JIRA, explain what's missing so we can add it.

Tilman


Am 30.05.2017 um 12:30 schrieb chitgoks:
hi

how do you add a review status to a comment?

This is my pseudo code for adding a reply comment for example

             PDAnnotationText replyAnnotation = new PDAnnotationText();
             replyAnnotation.setRectangle(location);
             replyAnnotation.setTitlePopup(comment.getUsername());
             replyAnnotation.setContents(comment.getComment());
             replyAnnotation.setCreationDate(comment.getDateCreated());
             replyAnnotation.setModifiedDate(comment.getDateModified());
             replyAnnotation.setName(PDAnnotationText.NAME_COMMENT);
             replyAnnotation.setInReplyTo(pdAnnotation);

Now, there is a setState() and setStateModel() but when i add it to the
reply, the reply does not appear when exported. Also, if someone else set
the review, that would conflict if I use setTitlePopup. Is there a COSName
for it?

Also, I see in Acrobat they have a review history, how do you add the
various review status entries to the comment?

Thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to