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

Tilman Hausherr commented on PDFBOX-4515:
-----------------------------------------

The 2.0 code is here:
 
[https://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddAnnotations.java?view=markup]

It does not contain the creation of the freetext annotation. You have to do 
this with the PDAnnotationMarkup class.
{code:java}
            PDAnnotationMarkup freetext = new PDAnnotationMarkup();
            freetext.getCOSObject().setName(COSName.SUBTYPE, 
PDAnnotationMarkup.SUB_TYPE_FREETEXT);
{code}

> Support for Add Text Callout Annotation tool.
> ---------------------------------------------
>
>                 Key: PDFBOX-4515
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4515
>             Project: PDFBox
>          Issue Type: Wish
>          Components: PDModel
>    Affects Versions: 2.0.15
>            Reporter: Kaushlendra Singh
>            Priority: Major
>              Labels: Annotations
>         Attachments: Screen Shot 2019-04-15 at 5.39.31 PM.png, myPdf.pdf
>
>
> I am trying to extract information related to "Add Text Callout" annotation 
> tool from pdf. I get to know from initial research that it's a "FreeText" 
> type annotation and it's intent is "FreeTextCallout". But I am unable to 
> figure out like how can I get the rectangle info for both the box and arrow 
> attached to it. I am able to get the bounding box which encloses both the 
> markups. I don't know it's already implemented or not.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to