[jira] [Commented] (FOP-3322) fox:alt-text not written to /Contents on internal link annotations

"matthew roth (Jira)" <[email protected]> Wed, 3 Jun 2026 14:28:00 +0000 (UTC)
Newsgroups gmane.text.xml.fop.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/FOP-3322?page=3Dcom.atlassian.j=
ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D180857=
98#comment-18085798 ]=20

matthew roth commented on FOP-3322:
-----------------------------------

please see proposed fix [[0|[https://github.com/apache/xmlgraphics-fop/pull=
/102]]]

=C2=A0

[0] https://github.com/apache/xmlgraphics-fop/pull/102

> fox:alt-text not written to /Contents on internal link annotations
> ------------------------------------------------------------------
>
>                 Key: FOP-3322
>                 URL: https://issues.apache.org/jira/browse/FOP-3322
>             Project: FOP
>          Issue Type: Bug
>    Affects Versions: 2.11
>         Environment: - Linux=20
> - Apache FOP 2.11
> - `<accessibility>true</accessibility>`
> - `<pdf-ua-mode>PDF/UA-1</pdf-ua-mode>`
> - Validated with veraPDF 1.30.1, PDF/UA-1 profile
>            Reporter: matthew roth
>            Priority: Major
>              Labels: Accessibility
>             Fix For: main
>
>         Attachments: fop.xml, minimal-links-1.pdf, minimal-links-a11y-ua1=
-1.xml, minimal-links.fo
>
>
> When `<accessibility>true</accessibility>` and `<pdf-ua-mode>PDF/UA-1</pd=
f-ua-mode>`
> are enabled, `fox:alt-text` on `fo:basic-link` with `internal-destination=
` sets the
> `/Alt` attribute on the `/Link` structure element but does **not** set th=
e `/Contents`
> key on the `PDLinkAnnot` annotation dictionary.
> ISO 14289-1 (PDF/UA-1) =C2=A77.18.5 requires:
> > Links shall contain an alternate description via their Contents key as =
described
> > in ISO 32000-1:2008, 14.9.3.
> External-destination links appear to get `/Contents` set correctly; only
> internal-destination links are affected.
> A =C2=A0fix should propagate `fox:alt-text` to the `/Contents` entry of t=
he annotation
> dictionary for both link types.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)