pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4515) Support for Add Text Callout Annotation tool.
Date Tue, 16 Apr 2019 18:50:00 GMT

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

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

OK, so getting the callout line works. About the rectangle - I see now that the rectangle
is the outer rectangle, i.e. with everything. So getting the inner rectangle is trickier.
I think the /RD entry plays a role. You can get that one with {{getRectDifference()}}. From
what I see, to get the lower values of the inner rectangle you add the first two /RD values
to the outer rectangle, and to get the higher values, you substract the last two /RD values.
To see what I mean, open the file with PDFDebugger.

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


Mime
View raw message