From e948f22232d1bfcafbf9c421859b19c6ab3df956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Sun, 4 Aug 2013 09:35:36 +0200 Subject: [PATCH] Tagged-PDF: Add support to LBody tag at poppler-glib https://bugs.freedesktop.org/show_bug.cgi?id=67710 --- glib/poppler-structure-element.cc | 2 ++ glib/poppler-structure-element.h | 1 + glib/poppler-structure.cc | 2 ++ 3 files changed, 5 insertions(+) diff --git a/glib/poppler-structure-element.cc b/glib/poppler-structure-element.cc index 12a3946..a6179e7 100644 --- a/glib/poppler-structure-element.cc +++ b/glib/poppler-structure-element.cc @@ -106,6 +106,8 @@ _poppler_structelement_type_to_poppler_structure_element_kind (StructElement::Ty return POPPLER_STRUCTURE_ELEMENT_LIST_ITEM; case StructElement::Lbl: return POPPLER_STRUCTURE_ELEMENT_LIST_LABEL; + case StructElement::LBody: + return POPPLER_STRUCTURE_ELEMENT_LIST_BODY; case StructElement::Table: return POPPLER_STRUCTURE_ELEMENT_TABLE; case StructElement::TR: diff --git a/glib/poppler-structure-element.h b/glib/poppler-structure-element.h index 474bcba..7d249ee 100644 --- a/glib/poppler-structure-element.h +++ b/glib/poppler-structure-element.h @@ -69,6 +69,7 @@ typedef enum { POPPLER_STRUCTURE_ELEMENT_LIST, POPPLER_STRUCTURE_ELEMENT_LIST_ITEM, POPPLER_STRUCTURE_ELEMENT_LIST_LABEL, + POPPLER_STRUCTURE_ELEMENT_LIST_BODY, POPPLER_STRUCTURE_ELEMENT_TABLE, POPPLER_STRUCTURE_ELEMENT_TABLE_ROW, POPPLER_STRUCTURE_ELEMENT_TABLE_HEADING, diff --git a/glib/poppler-structure.cc b/glib/poppler-structure.cc index f9671a6..d13e24b 100644 --- a/glib/poppler-structure.cc +++ b/glib/poppler-structure.cc @@ -104,6 +104,8 @@ _poppler_structure_element_kind_to_structelement_type (PopplerStructureElementKi return StructElement::LI; case POPPLER_STRUCTURE_ELEMENT_LIST_LABEL: return StructElement::Lbl; + case POPPLER_STRUCTURE_ELEMENT_LIST_BODY: + return StructElement::LBody; case POPPLER_STRUCTURE_ELEMENT_TABLE: return StructElement::Table; case POPPLER_STRUCTURE_ELEMENT_TABLE_ROW: -- 1.8.1.2