[
https://issues.apache.org/jira/browse/PDFBOX-4199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16792068#comment-16792068
]
Tilman Hausherr commented on PDFBOX-4199:
-----------------------------------------
This isn't a new annotation, nor a new appearance stream, it is a combination
of two existing annotations, i.e. a caret and a strikeout annotation.
Generation of appearance streams exists in the trunk (as part of PDFBOX-3353).
The code for the caret annotation is quite simple, it is two bezier curves and
a line:
{code:java}
float halfX = rect.getWidth() / 2;
float halfY = rect.getHeight() / 2;
contentStream.moveTo(0, 0);
contentStream.curveTo(halfX, 0,
halfX, halfY,
halfX, rect.getHeight());
contentStream.curveTo(halfX, halfY,
halfX, 0,
rect.getWidth(), 0);
contentStream.closePath();
contentStream.fill();{code}
> 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: Bug
> Affects Versions: 2.0.9
> 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]