pub struct PdfPageTextSegment<'a> { /* private fields */ }
Expand description

A single rectangular text segment in a 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.

Implementations

Returns the bounding box of this PdfPageTextSegment.

Returns the width of this PdfPageTextSegment.

Returns the height of this PdfPageTextSegment.

Returns true if the bounds of this PdfPageTextSegment lie entirely within the given rectangle.

Returns true if the bounds of this PdfPageTextSegment lie at least partially within the given rectangle.

Returns all characters that lie within the bounds of this PdfPageTextSegment in the containing PdfPage, in the order in which they are defined in the document.

In complex custom layouts, the order in which characters are defined in the document and the order in which they appear visually during rendering (and thus the order in which they are read by a user) may not necessarily match.

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.