glib: Handle missing structure element types

Element Art (article); RB, RP, RB (Ruby text inner elements); and
WT, WP (Warichu inner elements) were not being handled. This adds
the corresponding handling in poppler-glib. Also, the "default" case
in the switch in poppler_structure_element_get_type() is removed, so
the compiler can emit warnings when enum values are not handled.

https://bugs.freedesktop.org/show_bug.cgi?id=75323
glib: Add poppler_structure_element_is_grouping()

Implement a method to check whether a structure element is a grouping
element, wrapping the StructElement::isGrouping() method.

https://bugs.freedesktop.org/show_bug.cgi?id=74753
Tagged-PDF: Fix parsing of attached element attributes

The wrong object was used as attribute dictionary, which caused
a segmentation fault when parsing PDF files in which the structure
elements included attributes attached to them. This patch fixes the
issue.

Thanks to Joanmarie Diggs <jdiggs@igalia.com> for helping in
debugging the problem.

https://bugs.freedesktop.org/show_bug.cgi?id=74805
Try harder to open broken files

Bug #75232
glib: Remove unneeded POPPLER_STRUCTURE_ELEMENT_UNKNOWN

The enum value POPPLER_STRUCTURE_ELEMENT_UNKNOWN because Poppler does
not add invalid StructElements ("invalid" being nodes of type
StructElement::Unknown) to the Tagged-PDF structure tree. That means
that poppler-glib does not need to expose it in the API. An assertion
is left to aid in finding issues when using debug builds.

https://bugs.freedesktop.org/show_bug.cgi?id=75541
glib: Remove poppler_text_span_is_link() in header

The method poppler_text_span_is_link() does not exist, and must
be removed from the API header.

https://bugs.freedesktop.org/show_bug.cgi?id=75613
glib: Fixes in the API reference documentation

- Remove the references to non-existent methods for PopplerStructureElement,
  and point to PopplerStructureElementIter instead to point out how to
  obtain the structure tree.
- Remove a non-existent include in poppler-docs.sgml
- Add POPPLER_TYPE_TEXT_SPAN to the list of private symbols.

https://bugs.freedesktop.org/show_bug.cgi?id=75615
Qt: Expose document-supplied text direction
glib: Implement accessors for element attributes

Implement inspecting the standard attributes of PopplerStructureElement
objects.

https://bugs.freedesktop.org/show_bug.cgi?id=64821
glib: Rename PopplerStructureScope as PopplerStructureTableScope

It's a table specific attribute
glib: Update the documentation symbols after the PopplerStructureScope rename
Rename getNumElements, getElement and appendElement as getNumChildren, getChild and appendChild

It's more consistent with other internal API and less confusing.
glib: Add missing underscore in method name

The correct name is poppler_structure_element_get_form_state().

https://bugs.freedesktop.org/show_bug.cgi?id=75827
glib: Use flags argument in poppler_structure_element_get_text()

Instead of accepting a boolean argument to enable recursive text extraction,
use a flags value. Text extraction may add features in the future (for
example, allowing using alternate text as replacement for inline figures),
and this will allow to extend the method without introducing ABI or API
breakage.

https://bugs.freedesktop.org/show_bug.cgi?id=75796
Fix TIFF writting in Windows

Bug #75969
Limit numeric parsing of character names

Bug #38456
Fix regression when creating level1 PS

Bug #75241
Make the test rect go to xMax, yMax not xMax-1,yMax-1

I don't understand why the -1 is there and removing
it actually fixes bug #76387
Reorder the if check condition

I think the previous condition was correct anyway because of the extra -1 in the i check
but it really makes more sense to have the i check first

Bug #76478
Fix Heap-buffer-overflow in TextPage::updateFont

Bug #76442