isPlainTextExtractable method
- PdfTextExtractorConfig config = const PdfTextExtractorConfig(),
Returns true when fewer than PdfTextExtractorConfig.scannedPageRatio of pages lack a
text layer (i.e. the document is suitable for plain-text extraction).
Internally runs extractPlainText to completion and counts pages where
PdfPageText.hasTextLayer is false. Returns false when the proportion
of such pages meets or exceeds PdfTextExtractorConfig.scannedPageRatio.
Use per-page PdfPageText.hasTextLayer for finer-grained control.
Throws StateError if the document has been closed.
Implementation
Future<bool> isPlainTextExtractable({
PdfTextExtractorConfig config = const PdfTextExtractorConfig(),
}) => _impl.isPlainTextExtractable(config: config);