[latex3-commits] [latex3/tagpdf] develop: Fix empty structparent value in lua-mode (76d0995)
github at latex-project.org
github at latex-project.org
Fri Feb 23 15:38:55 CET 2024
Repository : https://github.com/latex3/tagpdf
On branch : develop
Link : https://github.com/latex3/tagpdf/commit/76d09955680e374eddd2c4cc9183621083418f7d
>---------------------------------------------------------------
commit 76d09955680e374eddd2c4cc9183621083418f7d
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Feb 23 15:38:55 2024 +0100
Fix empty structparent value in lua-mode
>---------------------------------------------------------------
76d09955680e374eddd2c4cc9183621083418f7d
CHANGELOG.md | 3 +
tagpdf-backend.dtx | 1 +
testfiles-luatex/test-sectioning-koma.tpf | 94 ++++++++++++++++---------------
3 files changed, 52 insertions(+), 46 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c267099..166ce80 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,9 @@ this project uses date-based 'snapshot' version identifiers.
- structure destination is added OpenAction if present
- viewer/startstructure key to setup the OpenAction structure.
+### Fixed
+ - missing structparent value if page is empty in lua-mode
+
## [2024-02-22]
Version 0.98w
### Changed
diff --git a/tagpdf-backend.dtx b/tagpdf-backend.dtx
index e4078db..2e931a7 100644
--- a/tagpdf-backend.dtx
+++ b/tagpdf-backend.dtx
@@ -1244,6 +1244,7 @@ function ltx.@@.func.fill_parent_tree_line (page)
end
else
ltx.@@.trace.log ("INFO PARENTTREE-NO-DATA: page "..page,3)
+ numsentry = pdfpage.." []"
end
return numsentry
end
diff --git a/testfiles-luatex/test-sectioning-koma.tpf b/testfiles-luatex/test-sectioning-koma.tpf
index 4286a24..f01bdb4 100644
--- a/testfiles-luatex/test-sectioning-koma.tpf
+++ b/testfiles-luatex/test-sectioning-koma.tpf
@@ -229,7 +229,9 @@ endobj
endobj
6 0 obj
<< /Nums [0 [ 10 0 R 13 0 R 14 0 R 15 0 R 17 0 R 18 0 R 20 0 R 21 0 R 22 0 R 24 0 R 25 0 R 26 0 R]
+1 []
2 [ 36 0 R 36 0 R]
+3 []
4 [ 43 0 R 44 0 R 44 0 R 45 0 R 45 0 R 46 0 R 47 0 R]
] >>
endobj
@@ -478,71 +480,71 @@ xref
0000000003 00000 f
0000000004 00000 f
0000000008 00000 f
-0000008760 00000 n
+0000008768 00000 n
0000004816 00000 n
-0000005466 00000 n
+0000005474 00000 n
0000000000 00000 f
-0000006058 00000 n
-0000006193 00000 n
-0000006300 00000 n
-0000006403 00000 n
-0000006501 00000 n
-0000006610 00000 n
-0000006717 00000 n
-0000006832 00000 n
-0000006923 00000 n
-0000007030 00000 n
-0000007145 00000 n
-0000007243 00000 n
-0000007352 00000 n
-0000007459 00000 n
-0000007574 00000 n
-0000007672 00000 n
-0000007781 00000 n
-0000007889 00000 n
+0000006066 00000 n
+0000006201 00000 n
+0000006308 00000 n
+0000006411 00000 n
+0000006509 00000 n
+0000006618 00000 n
+0000006725 00000 n
+0000006840 00000 n
+0000006931 00000 n
+0000007038 00000 n
+0000007153 00000 n
+0000007251 00000 n
+0000007360 00000 n
+0000007467 00000 n
+0000007582 00000 n
+0000007680 00000 n
+0000007789 00000 n
+0000007897 00000 n
0000002309 00000 n
0000002167 00000 n
0000000020 00000 n
-0000017484 00000 n
-0000013412 00000 n
-0000017830 00000 n
+0000017492 00000 n
+0000013420 00000 n
+0000017838 00000 n
0000002641 00000 n
0000002499 00000 n
0000002408 00000 n
-0000008005 00000 n
+0000008013 00000 n
0000003139 00000 n
0000002997 00000 n
0000002698 00000 n
0000003459 00000 n
0000003317 00000 n
0000003226 00000 n
-0000008149 00000 n
-0000008256 00000 n
-0000008400 00000 n
-0000008544 00000 n
-0000008654 00000 n
+0000008157 00000 n
+0000008264 00000 n
+0000008408 00000 n
+0000008552 00000 n
+0000008662 00000 n
0000004634 00000 n
0000004492 00000 n
0000003516 00000 n
0000004780 00000 n
-0000005013 00000 n
-0000005429 00000 n
-0000008861 00000 n
-0000012171 00000 n
-0000009079 00000 n
-0000009154 00000 n
-0000012407 00000 n
-0000013566 00000 n
-0000013766 00000 n
-0000016308 00000 n
-0000013950 00000 n
-0000014024 00000 n
-0000016541 00000 n
-0000017634 00000 n
-0000017920 00000 n
-0000018022 00000 n
+0000005021 00000 n
+0000005437 00000 n
+0000008869 00000 n
+0000012179 00000 n
+0000009087 00000 n
+0000009162 00000 n
+0000012415 00000 n
+0000013574 00000 n
+0000013774 00000 n
+0000016316 00000 n
+0000013958 00000 n
+0000014032 00000 n
+0000016549 00000 n
+0000017642 00000 n
+0000017928 00000 n
+0000018030 00000 n
trailer
<< /Size 68 /Root 66 0 R /Info 67 0 R /ID [ <2350CAD05F8A7AF0AA4058486855344F> <2350CAD05F8A7AF0AA4058486855344F> ] >>
startxref
-18156
+18164
%%EOF
More information about the latex3-commits
mailing list.