pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: adding many revew status to comment
Date Wed, 31 May 2017 16:38:17 GMT

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 / 

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

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


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


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: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org

View raw message