SectionTitles

public struct SectionTitles : Codable, Equatable

An array containing one object per section or subsection detected in the input document. Sections and subsections are not nested; instead, they are flattened out and can be placed back in order by using the begin and end values of the element and the level value of the section.

  • The text of the section title, if identified.

    Declaration

    Swift

    public var text: String?
  • The numeric location of the identified element in the document, represented with two integers labeled begin and end.

    Declaration

    Swift

    public var location: Location?
  • An integer indicating the level at which the section is located in the input document. For example, 1 represents a top-level section, 2 represents a subsection within the level 1 section, and so forth.

    Declaration

    Swift

    public var level: Int?
  • An array of location objects that lists the locations of detected section titles.

    Declaration

    Swift

    public var elementLocations: [ElementLocations]?