it's ok. thank you tilman. i got it. so each review status is considered a text annotation. just like how you create a reply. but the critical part is creating that annotation as a review status.
it will only happen with the COSName.F and a value of 30. I have no idea what the name for the value 30 is, but i used itext rups application to open a pdf with review status and the value of 30 came up. i also code in itext and used that value and it worked. On Thu, Jun 1, 2017 at 12:38 AM, Tilman Hausherr <[email protected]> wrote: > 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] > >

