Bug 74520

Summary: StructElement does not provide a way of identifying grouping elements
Product: poppler Reporter: Adrian Perez de Castro <aperez>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: apinheiro, carlosgc, jdiggs
Version: unspecified   
Hardware: Other   
OS: All   
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 64813, 74753    
Attachments: Allow properly identifying grouping elements

Description Adrian Perez de Castro 2014-02-04 17:29:14 UTC
Created attachment 93390 [details]
Allow properly identifying grouping elements

The StructElement class, used for exposing Tagged-PDF information,
does not provide a way of identifying which elements are grouping
elements. According to section of the PDF standard (titled
“Grouping elements”, those shall not be considered as block elements,
nor as inline elements. Provided that there are already methods
StructElement::isInline() and StructElement::isBlock(), it would
be reasonable to expected that a StructElement::isGrouping() existed.

Last, but not least, some actual applications may need to know when
an element is used to group other elements. One example usage would
be being able to collapse text content of all elements in a grouping
element to perform text reflowing, presenting the text as a single
entity to accessibility technologies, etc.
Comment 1 Carlos Garcia Campos 2014-02-08 08:16:07 UTC
Pushed, thanks!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.