[
https://issues.apache.org/jira/browse/PDFBOX-4089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16346956#comment-16346956
]
Maruan Sahyoun commented on PDFBOX-4089:
----------------------------------------
My bad - I've forgotten to take the {{/RD}} entry into account. If there is one
the border edges are offset by the respective value from the {{/Rect}}. If
there is no {{/RD}} entry Adobe Reader uses the original {{/Rect}} for the
border edges and creates the {{/RD}} entry and sets the {{/Rect}} to be the
original value + the corresponding {{/RD}} value.
> Adjust box sizing calculation for Square annotation with empty /AP entry
> ------------------------------------------------------------------------
>
> Key: PDFBOX-4089
> URL: https://issues.apache.org/jira/browse/PDFBOX-4089
> Project: PDFBox
> Issue Type: Sub-task
> Components: PDModel, Rendering
> Affects Versions: 3.0.0 PDFBox
> Reporter: Maruan Sahyoun
> Assignee: Maruan Sahyoun
> Priority: Major
> Labels: Annotations
> Fix For: 3.0.0 PDFBox
>
>
> If a square annotation doesn't have an {{/AP}} entry Adobe Reader calculates
> the boxes border so that the outer dimension matches the annotations
> {{/Rect}} entry and also enlarges the {{/Rect}} as to add padding to the
> border.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]