[jira] [Commented] (FOP-3306) Multiple Artifacts for fo:leader dots in the accessible PDF
"Alexander Dyuzhev (Jira)" <[email protected]> Wed, 8 Jul 2026 19:52: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=3D180946=
67#comment-18094667 ]=20
Alexander Dyuzhev commented on FOP-3306:
----------------------------------------
[~jgoncalves] the link [https://github.com/apache/xmlgraphics-fop/commit/63=
61eaf6559a29da124bdd28e2023ff29e531afe] relates to the first update in May,=
28.
May be do you mean the commit [https://github.com/apache/xmlgraphics-fop/co=
mmit/73ebfb18d86765ba0185fe8c27099434907fc356?] I think no need to remove t=
he condition`getUserAgent().isPdfUAEnabled()` specially in the `drawLine` f=
unction. I set PDF/UA mode in the FOP config in my production environment, =
and now the line marked as Artifact, even without this commit.
{code:java}
=C2=A0 =C2=A0 /Artifact BMC
=C2=A0 =C2=A0 =C2=A0 q
=C2=A0 =C2=A0 =C2=A0 =C2=A0 0 G
=C2=A0 =C2=A0 =C2=A0 =C2=A0 1 J
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [ 0 2.004985 ] 0 d
=C2=A0 =C2=A0 =C2=A0 =C2=A0 1 w
=C2=A0 =C2=A0 =C2=A0 =C2=A0 68.513 38.83 m
=C2=A0 =C2=A0 =C2=A0 =C2=A0 471.515 38.83 l
=C2=A0 =C2=A0 =C2=A0 =C2=A0 S
=C2=A0 =C2=A0 =C2=A0 Q
=C2=A0 =C2=A0 EMC {code}
There is a difference between `<fo:leader leader-pattern=3D"dots"/>` and `<=
fo:leader leader-pattern=3D"rule" rule-style=3D"dotted"></fo:leader>` in th=
e PDF rendering:
!image-2026-07-08-22-43-55-471.png!
Is there a way to redefine the character (quad vs. circle), size and may di=
stance between the glyphs?
> 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, image-2026-07-08-22-43-55-471.png, test.f=
o, test.pdf, test_2026-05-29.fo, test_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=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 0 24.666 Tm
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ (Introduction ) -115.6667 () ] TJ
> =C2=A0 =C2=A0 =C2=A0 ET
> =C2=A0 =C2=A0 EMC
> =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 67.424 24.666 Tm
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ (.) ] TJ
> =C2=A0 =C2=A0 =C2=A0 ET
> =C2=A0 =C2=A0 EMC
> =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 70.76 24.666 Tm
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ (.) ] TJ
> =C2=A0 =C2=A0 =C2=A0 ET
> =C2=A0 =C2=A0 EMC
> =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 74.096 24.666 Tm
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ (.) ] TJ
> =C2=A0 =C2=A0 =C2=A0 ET
> =C2=A0 =C2=A0 EMC
> =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 77.432 24.666 Tm
> =C2=A0 =C2=A0 =C2=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)