latex3 / tagpdf

Tagging support code for LaTeX
59 stars 7 forks source link

Missing page reference for OBJR elements #53

Closed zauguin closed 2 years ago

zauguin commented 2 years ago

According to the specification, any OBJR element shall specify a page using /Pg or be used by a structure element which specifies a page using /Pg. This page reference seems to be missing in OBJR objects created by tagpdf.

E.g. in testfiles/test-struct-OBJR.tpf, object 31 is an OBJR without a /Pg entry:

31 0 obj
<< /Type/OBJR/Obj 30 0 R >>
endobj

which is used by object 18 which doesn't have a /Pg entry either:

18 0 obj
<<  /Type /StructElem /S /P /P 17 0 R /K [<</Type /MCR /Pg 20 0 R/MCID 0>> 31 0 R <</Type /MCR /Pg 20 0 R/MCID 1>>] /NS 11 0 R  >>
endobj
u-fischer commented 2 years ago

right, that is missing. I think I don't want to add a /Pg entry to all structures, that would require labels and whatits everywhere, so I added it to the objr.

u-fischer commented 2 years ago

this should now be resolved.