[
https://issues.apache.org/jira/browse/PDFBOX-4199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16445859#comment-16445859
]
Tilman Hausherr commented on PDFBOX-4199:
-----------------------------------------
I assume you are asking why the caret doesn't appear with Adobe Reader.
Re your code: AnnotationType.Pdf doesn't exist. I used "StrikeOutTextEdit" and
"Replace" instead. These constants seem to be secret, I can't find them in the
PDF specification.
By comparing the two files and playing around, I got the caret to appear (in
Adobe Reader) by removing the line
{{caretAnnotation.setInReplyTo(noteToReplaceText);}}.
In the original file, the relationship is different: the StrikeOut annotation
has an IRT to the caret annotation. In your code it is the caret annotation
that has an IRT to the StrikeOut annotation.
So I used {{noteToReplaceText.setInReplyTo(caretAnnotation);}} and it worked.
Did my answer solve your problem?
> Unable to create "Note to Replace Text" annotation into pdf.
> ------------------------------------------------------------
>
> Key: PDFBOX-4199
> URL: https://issues.apache.org/jira/browse/PDFBOX-4199
> Project: PDFBox
> Issue Type: Improvement
> Reporter: Kaushlendra Singh
> Priority: Major
> Labels: Annotations
> Attachments: NoteToReplaceText.java, Note_to_Replace_Text.PNG,
> myPdf.pdf
>
>
> Correct annotation type doesn't appear while creating "Note to Replace Text"
> annotation into pdf document.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]