PdfPageTextContent


public final class PdfPageTextContent extends PdfPageContent


Represents a continuous stream of text in a page of a PDF document in the order of viewing.

Summary

Public constructors

PdfPageTextContent(
    @NonNull List<@NonNull RectF> bounds,
    @NonNull String text
)

Public methods

final @NonNull String

: Text content within the bounds.

Inherited methods

From androidx.pdf.content.PdfPageContent
final @NonNull List<@NonNull RectF>

: A list of rectangles defining the content's bounding boxes in PDF coordinates.

Public constructors

PdfPageTextContent

public PdfPageTextContent(
    @NonNull List<@NonNull RectF> bounds,
    @NonNull String text
)
Parameters
@NonNull List<@NonNull RectF> bounds

: Bounds for the text content

@NonNull String text

: Text content within the bounds.

Public methods

getText

Added in 1.0.0-alpha11
public final @NonNull String getText()

: Text content within the bounds.