[
https://issues.apache.org/jira/browse/PDFBOX-4669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17004891#comment-17004891
]
Maruan Sahyoun commented on PDFBOX-4669:
----------------------------------------
I tracked it down to the following line in {{PDPageTree}}
{code:java}
found = searched.equals(current)
{code}
which after the pending changes to COSDictionary treats a page as equal if the
COSDictionary is equal which is no longer the case. Of course we'd need to
check for the same object.
Even if this is an internal change I'd like to get your feedback on changing
COSDictionary and COSArray because this might also break users current code.
WDYT?
OTOH doing the change to PDAnnotation only will only fix the handling of that
but other areas such as fields and so will still be wrong so I'd prefer to move
forward with the change not only for trunk but also for 2.0
> Ensure proper functionality of COSArrayList
> -------------------------------------------
>
> Key: PDFBOX-4669
> URL: https://issues.apache.org/jira/browse/PDFBOX-4669
> Project: PDFBox
> Issue Type: Sub-task
> Components: PDModel
> Affects Versions: 2.0.17, 3.0.0 PDFBox
> Reporter: Maruan Sahyoun
> Assignee: Maruan Sahyoun
> Priority: Major
>
> The current COSArrayList implementation has some glitches as pointed out at
> https://stackoverflow.com/questions/45812696/
> In addition when working with {{AnnotationFilter}} as the
> adding/update/removal is index based the wron index of the underlying
> {{COSArray}} is affected.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]