latex3 / tagging-project

Issues related to the tagging project
https://latex3.github.io/tagging-project/
LaTeX Project Public License v1.3c
39 stars 15 forks source link

pgfpages package incompatible #590

Open mbertucci47 opened 2 months ago

mbertucci47 commented 2 months ago

The pgfpages package does odd things in tags and when uploaded to ngpdf. Here's an example:

\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    testphase={phase-III,math,title,table,firstaid}
  }
\documentclass{article}

\usepackage{pgfpages}
\pgfpagesuselayout{6 on 1}[a4paper,landscape,border shrink=5mm]

\title{pgfpages tagging test}

\begin{document}
First
\clearpage
Second
\clearpage
Third
\clearpage
Fourth
\clearpage
Fifth
\clearpage
Sixth
\clearpage
Seventh
\end{document}

The tags all show the word "First":

pgfpages_struc

But if you click Content in Acrobat it looks more reasonable:

pgfpages_content

When you upload the pdf to ngpdf, the output is "First Second Third Fourth Fifth Sixth" seven times:

First Second Third Fourth Fifth Sixth

First Second Third Fourth Fifth Sixth

First Second Third Fourth Fifth Sixth

First Second Third Fourth Fifth Sixth

First Second Third Fourth Fifth Sixth

First Second Third Fourth Fifth Sixth

First Second Third Fourth Fifth Sixth
FrankMittelbach commented 2 months ago

not sure what to make of that

u-fischer commented 2 months ago

Well tagging is wrong. With pdflatex the numbering of the container and their placement in the structure is okay, but they reference the wrong page object (a not existing page). With lualatex the page object is correct but the all containers have number 0 (as if all containers are on different pages). So this must be analysed.