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

Maruan Sahyoun commented on PDFBOX-3353:
----------------------------------------

OK - here is what's happening for [^PDFBOX-2019-Annotations.pdf] in Adobe 
Reader (OS X Preview does that differently and the arrow ends within the line)

- the original /Rect entry is taken together with line width etc to draw the 
border so that it's outer dimension matches the original /Rect
- the original /Rect entry is changed (enlarged) with a padding added to the 
borders outer dimension

original /Rect:
{code}
468.0
468.0
540.0
540.0
{code}

amended /Rect
{code}
465.0
465.0
543.0
543.0
{code}

Very interesting behavior as the /AP generation affects the original settings.

[~tilman] Do we want that? I'd like to match Adobe Reader here but I don't like 
their approach!



> Create appearance streams for annotations
> -----------------------------------------
>
>                 Key: PDFBOX-3353
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3353
>             Project: PDFBox
>          Issue Type: Task
>          Components: PDModel, Rendering
>    Affects Versions: 1.8.12, 2.0.0, 2.0.1, 2.0.2, 3.0.0 PDFBox
>            Reporter: Tilman Hausherr
>            Priority: Major
>              Labels: Annotations
>         Attachments: AnnotationSample.Standard.pdf, 
> CTAN-example-Annotations-rot270.pdf, CTAN-example-Annotations.pdf, 
> Line-Annotation-OpenArrow-w10-AP.pdf, PDFBOX-2019-Annotations.pdf, 
> PDFBOX-2898-Annotations.pdf, PDFBOX-3353-highlight-noAP-001796-p1.pdf, 
> PDFBOX-3353-highlight-noAP.pdf, PDFJS-7115-indirect-rect.pdf, 
> ShowAnnotation-4.java, ShowAnnotation-5.java, ShowAnnotation-6.java, 
> SquareAnnotations.pdf, annots.pdf, gs-bugzilla-693664-AnnotationTest.pdf, 
> line_dimension_appearance_stream-noAP.pdf, 
> line_dimension_appearance_stream.pdf, pdf_commenting_new.pdf, 
> showAnnotation.java, text_markup_ap_test.pdf
>
>
> Create appearance streams for annotations when missing.
> I'll start by replacing current code for Ink and Link annotations.
> Good example PDFs:
> http://www.pdfill.com/example/pdf_commenting_new.pdf
> https://github.com/mozilla/pdf.js/issues/6810



--
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