[Poppler-bugs] [Bug 80308] poppler_structure_element_get_table_{row,column}_span() apply to cell elements; not table elements
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jun 23 08:46:38 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=80308
--- Comment #1 from Carlos Garcia Campos <carlosgc at gnome.org> ---
(In reply to comment #0)
> Created attachment 101452 [details] [review]
> proposed patch
>
> As per the PDF spec, cell elements (TD and TH) have row and column spans.
> But poppler_structure_element_get_table_row_span() and
> poppler_structure_element_get_table_column_span() each expect a table
> element -- which of course has no span attributes defined and thus the
> default value of 1 (as per the spec) is always returned by these methods.
> (Unless of course you ask for the spans of a cell in which case you get an
> error.)
hmm, it seems other table elements have the same problem:
- poppler_structure_element_get_table_headers: This attribute may apply to
header cells (TH) as well as data cells (TD)
- poppler_structure_element_get_table_scope: This attribute shall only be
used
when the structure type of the element is TH
Could you please fix those too?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20140623/4810f105/attachment.html>
More information about the Poppler-bugs
mailing list