loadStructuredText method

Future<PdfPageText> loadStructuredText({
  1. bool ensureLoaded = true,
})

Load structured text with character bounding boxes.

The function internally does test flow analysis (reading order) and line segmentation to detect text direction and line breaks.

To access the raw text, use loadText.

If the page is not loaded yet (progressive loading case only), this function returns null.

Implementation

Future<PdfPageText> loadStructuredText({bool ensureLoaded = true}) =>
    PdfTextFormatter.loadStructuredText(this, pageNumberOverride: pageNumber);