Skip to content
pubscout

read_pdf_text

0.3.1, released 2 years ago by an unverified publisher

Parses text out of PDF documents on Android and iOS.

WASM-ready
$ flutter pub add read_pdf_text
Source repository

What it does

A plugin that parses strings out of PDF documents using Apache PDFBox on Android and PDFKit on iOS. It provides simple functions to extract text, get paginated text, and check the length of the document.

AI-written summary of version 0.3.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to extract raw text content from local PDF files in Flutter.
  • You need to read the total page count of a PDF file.

Skip it when

  • You need advanced PDF manipulation like editing, filling forms, or rendering pages to images.
  • You are targeting platforms other than Android and iOS.

Strengths

  • Simple API with only three main functions.
  • Supports paginated text extraction.

Weaknesses

  • Limited only to reading text and page count.
  • Only supports Android and iOS platforms.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Requires iOS version 11 or higher.

Future<String> getPDFtext(String path) async {
  String text = "";
  try {
    text = await ReadPdfText.getPDFtext(path);
  } on PlatformException {
    print('Failed to get PDF text.');
  }
  return text;
}

Alternatives

Packages that do the same job and could replace read_pdf_text.