[
https://issues.apache.org/jira/browse/PDFBOX-4089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16350905#comment-16350905
]
Maruan Sahyoun commented on PDFBOX-4089:
----------------------------------------
For the Square of PDFBOX-2019.Annotations-pdf
Adobe Reader
{code}
BBox [465.0, 465.0, 543.0, 543.0]
Matrix [1.0, 0.0, 0.0, 1.0, -465.0, -465.0]
Rect [465.0, 465.0, 543.0, 543.0]
{code}
PDFBox
{code}
BBox [465.0, 465.0, 543.0, 543.0]
Matrix [1.0, 0.0, 0.0, 1.0, -465.0, -465.0]
Rect [465.0, 465.0, 543.0, 543.0]
{code}
There are some differences at the third digit for other files I've tested with.
I could set a higher 'precision' to get closer. If there are some bigger
differences with specific files please let me know.
> 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
>
> Attachments: CTAN-example-Annotations-p1.pdf,
> PDFBOX-2019-AnnotationsAP.pdf
>
>
> 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]