Gjsify LogoGjsify Logo

Hierarchy

  • StructureElementIter

Index

Constructors

  • Returns the root #PopplerStructureElementIter for document, or %NULL. The returned value must be freed with poppler_structure_element_iter_free().

    Documents may have an associated structure tree &mdashmostly, Tagged-PDF compliant documents— which can be used to obtain information about the document structure and its contents. Each node in the tree contains a #PopplerStructureElement.

    Here is a simple example that walks the whole tree:

    static void walk_structure (PopplerStructureElementIter iter) { do { / Get the element and do something with it */ PopplerStructureElementIter *child = poppler_structure_element_iter_get_child (iter); if (child) walk_structure (child); poppler_structure_element_iter_free (child); } while (poppler_structure_element_iter_next (iter)); } ... { iter = poppler_structure_element_iter_new (document); walk_structure (iter); poppler_structure_element_iter_free (iter); }

    Parameters

    Returns StructureElementIter

Properties

name: string

Methods

  • free(): void
  • next(): boolean
  • Sets iter to point to the next structure element at the current level of the tree, if valid. See poppler_structure_element_iter_new() for more information.

    Returns boolean

  • Returns the root #PopplerStructureElementIter for document, or %NULL. The returned value must be freed with poppler_structure_element_iter_free().

    Documents may have an associated structure tree &mdashmostly, Tagged-PDF compliant documents— which can be used to obtain information about the document structure and its contents. Each node in the tree contains a #PopplerStructureElement.

    Here is a simple example that walks the whole tree:

    static void walk_structure (PopplerStructureElementIter iter) { do { / Get the element and do something with it */ PopplerStructureElementIter *child = poppler_structure_element_iter_get_child (iter); if (child) walk_structure (child); poppler_structure_element_iter_free (child); } while (poppler_structure_element_iter_next (iter)); } ... { iter = poppler_structure_element_iter_new (document); walk_structure (iter); poppler_structure_element_iter_free (iter); }

    Parameters

    Returns StructureElementIter

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method