From 7a55a45d4467ef760ac052b27794184b3781764a Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Tue, 4 Feb 2014 19:35:58 +0200 Subject: [PATCH] Report LBody elements in Tagged-PDF structure as block elements According to section 14.8.4.3 "Block-Level Structure Elements" (in particular subsection 14.8.4.3.3 "List Elements"), structure elements of type LBody must be reported as block elements. This patch changes the reported type from elementTypeUndefined to elementTypeBlock accordingly. --- poppler/StructElement.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poppler/StructElement.cc b/poppler/StructElement.cc index 6392433..558cab4 100644 --- a/poppler/StructElement.cc +++ b/poppler/StructElement.cc @@ -552,7 +552,7 @@ static const struct TypeMapEntry { { StructElement::L, "L", elementTypeBlock, attributeMapList }, { StructElement::LI, "LI", elementTypeBlock, attributeMapBlock }, { StructElement::Lbl, "Lbl", elementTypeBlock, attributeMapBlock }, - { StructElement::LBody, "LBody", elementTypeUndefined, attributeMapBlock }, + { StructElement::LBody, "LBody", elementTypeBlock, attributeMapBlock }, { StructElement::Table, "Table", elementTypeBlock, attributeMapTable }, { StructElement::TR, "TR", elementTypeUndefined, attributeMapShared }, { StructElement::TH, "TH", elementTypeUndefined, attributeMapTableCell }, -- 1.8.5.3