[jira] [Commented] (FOP-3306) Multiple Artifacts for fo:leader dots in the accessible PDF

"Alexander Dyuzhev (Jira)" <[email protected]> Sat, 30 May 2026 18:32:00 +0000 (UTC)
Newsgroups gmane.text.xml.fop.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/FOP-3306?page=3Dcom.atlassian.j=
ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D180845=
99#comment-18084599 ]=20

Alexander Dyuzhev commented on FOP-3306:
----------------------------------------

[~jgoncalves] and second question - is there a way to mark the line as Arti=
fact?

Currently, the dotted line is not marked as Artifact:
{code:java}
BDC
      BT
        /F1 12 Tf
        1 0 0 -1 0 39.066 Tm
        [ (Introduction ) -115.6667 () ] TJ
      ET
    EMC
    q
      0 G
      1 J
      [ 0 2.005318 ] 0 d
      1 w
      67.424 38.566 m
      470.493 38.566 l
      S
    Q
    /Link << /MCID 5 >> BDC
      BT
        /F1 12 Tf
        1 0 0 -1 470.493 39.066 Tm
        [ ( ) -115.6667 () ] TJ
      ET
    EMC
    /Quote << /MCID 6 >> BDC
      BT
        /F1 12 Tf
        1 0 0 -1 475.217 39.066 Tm
        [ (2) ] TJ
      ET
    EMC {code}


I've tried two variants:
{code}
<fo:leader role=3D"artifact" ...{code}

and

{code}
<fo:wrapper role=3D"artifact"><fo:leader ...{code}

but no changes in the PDF.

> Multiple Artifacts for fo:leader dots in the accessible PDF
> -----------------------------------------------------------
>
>                 Key: FOP-3306
>                 URL: https://issues.apache.org/jira/browse/FOP-3306
>             Project: FOP
>          Issue Type: Improvement
>            Reporter: Alexander Dyuzhev
>            Assignee: Joao Goncalves
>            Priority: Major
>         Attachments: fop.xconf, test.fo, test.pdf, test_2026-05-29.fo, te=
st_2026-05-29.pdf
>
>
> I have a simple XSL-FO with \{{<fo:leader leader-pattern=3D"dots"/>}}.
> In the generated PDF, each dot is individually marked as Artifact:
> {code:java}
>   =C2=A0 EMC
> =C2=A0 =C2=A0 /Link << /MCID 1 >> BDC
> =C2=A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A0 =C2=A0 [ (.) ] TJ
> =C2=A0 =C2=A0 =C2=A0 ET
> =C2=A0 =C2=A0 EMC
>   =C2=A0 /Artifact BMC
> ...{code}
> (I use PDFBox's PDFDebugger tool)
> =C2=A0
> How to mark the entire run of dots as a single artifact?
> {code:java}
> =C2=A0 =C2=A0 /Artifact BMC
> =C2=A0 =C2=A0 =C2=A0 BT
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 /F1 12 Tf
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 0 0 -1 410.67 24.666 Tm
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ (..................) ] TJ
> =C2=A0 =C2=A0 =C2=A0 ET
> =C2=A0 =C2=A0 EMC{code}



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