[
https://issues.apache.org/jira/browse/FOP-2868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18069309#comment-18069309
]
Alexander Dyuzhev commented on FOP-2868:
----------------------------------------
I think the issue in the 'org\apache\fop\render\intermediate\IFRenderer.java'.
The method 'getGoToActionForID' for second link returns the GoToXYAction from
'actionSet' list (contains first link's GoToXYAction):
{code:java}
GoToXYAction action = (GoToXYAction)actionSet.get(targetID);
{code}
But in the method 'renderInlineParent', the structureTreeElement changes for
the 'action' that uses in both `link` in the list 'deferredLinks':
{code:java}
if (linkTraitFound) {
StructureTreeElement structElem
= (StructureTreeElement)
ip.getTrait(Trait.STRUCTURE_TREE_ELEMENT);
action.setStructureTreeElement(structElem);
Link link = new Link(action, ipRect);
this.deferredLinks.add(link);
{code}
> Accessible PDF with repeated links has incorrect document structure
> -------------------------------------------------------------------
>
> Key: FOP-2868
> URL: https://issues.apache.org/jira/browse/FOP-2868
> Project: FOP
> Issue Type: Bug
> Reporter: Simon Steiner
> Assignee: Simon Steiner
> Priority: Major
> Attachments: fop.xconf, test.fo, test_internal_destination.fo
>
>
> fop test.fo -c fop.xconf out.pdf
> Open in Acrobat Pro
> Select View > Navigation Panels > Tags and expand the tag tree to observe
> the tags, each www.slickdeals.net should have OBJR under it
--
This message was sent by Atlassian Jira
(v8.20.10#820010)