pub struct PdfPageTextSegments<'a> { /* private fields */ }

Implementations

Returns the number of distinct rectangular areas occupied by text in the containing PdfPage.

Pdfium automatically merges smaller text boxes into larger ones if all enclosed characters are on the same line and share the same font settings. The number of rectangular text segments returned by this function therefore indicates the minimum number of spans of text that share text styles on the page. The number of individual PdfPageTextObject objects on the page may be much larger than the number of text segments.

Returns true if this PdfPageTextSegments collection is empty.

Returns a single PdfPageTextSegment from this PdfPageTextSegments collection.

Returns an iterator over all the text segments in this PdfPageTextSegments collection.

Pdfium automatically merges smaller text boxes into larger text segments if all enclosed characters are on the same line and share the same font settings. The number of individual PdfPageTextObject objects on the page may be much larger than the number of text segments.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.