latex3 / tagpdf

Tagging support code for LaTeX
60 stars 7 forks source link

(luamode) MC after an artifact are missing in the structure #14

Closed u-fischer closed 5 years ago

u-fischer commented 5 years ago
\documentclass{article}

\usepackage{tagpdf}
\tagpdfsetup{activate-all,interwordspace=on,
 uncompress}

\begin{document}
\tagstructbegin{tag=Document}
\tagstructbegin{tag=P}
\tagmcbegin{tag=P}
Some text
\tagmcend
\tagmcbegin{artifact} 
with artifact 
\tagmcend
\tagmcbegin{tag=P} 
and more content
\tagmcend
\tagstructend
\tagstructend
\end{document}

Stream is ok:

/P<</MCID 0>> BDC
BT
/F15 9.96264 Tf
1 0 0 1 148.712 707.125 Tm [<00610051004B003200670069003200740069>]TJ
ET
EMC
/Artifact BMC
BT
/F15 9.96264 Tf
1 0 0 1 192.428 707.125 Tm [<007200420069003F0067001C0060006900420037001C002B0069>]TJ
ET
EMC
/P<</MCID 1>> BDC
BT
/F15 9.96264 Tf
1 0 0 1 246.984 707.125 Tm [<001C004D002F0067004B0051006000320067002B0051004D>28<00690032004D>28<0069>]TJ
ET
EMC

But structure is faulty (MCID 1 is missing):

5 0 obj
<< /Type /StructElem /S /P /P 4 0 R /K <</Type /MCR /Pg 7 0 R /MCID 0>> >>
endobj