read_pdf_text
0.3.1, released 2 years ago by an unverified publisher
Parses text out of PDF documents on Android and iOS.
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.
- syncfusion_flutter_pdfviewer
Flutter PDF Viewer library to display PDF documents seamlessly and efficiently.
86Compare - flutter_pdfview
A Flutter plugin providing native PDFView widgets on Android and iOS.
76Compare - flutter_html_to_pdf_plus
Flutter plugin for generating PDF documents from HTML code templates.
65Compare - flutter_dropzone
A drag-and-drop file plugin for Flutter Web applications.
50Compare