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