You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2020/12/18 16:40:00 UTC

[jira] [Commented] (PDFBOX-5052) Text Callout annotations strips comment text

    [ https://issues.apache.org/jira/browse/PDFBOX-5052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17251855#comment-17251855 ] 

Tilman Hausherr commented on PDFBOX-5052:
-----------------------------------------

Works for me, "<b>test 1234</b> test" appears in full.

> Text Callout annotations strips comment text
> --------------------------------------------
>
>                 Key: PDFBOX-5052
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5052
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Kaushlendra Singh
>            Priority: Major
>         Attachments: annotations2.pdf
>
>
> While creating "Text Callout" annotation, library is striping out the comment text.
> For example, library is ignoring seconds occurrence of the word "test" in "<b>test 1234</b> test" as it is present after first stylized text.
> Code being used:
> {code:java}
> PDAnnotationMarkup freeTextAnnotation = new PDAnnotationMarkup();
> freeTextAnnotation.setAnnotationName(annotationId);
> freeTextAnnotation.setContents("<b>test 1234</b> test");
> freeTextAnnotation.setTitlePopup("");
> freeTextAnnotation.setColor(new PDColor(rgb, PDDeviceRGB.INSTANCE));
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org