PdfTextExtractor 1.0.1
dotnet add package PdfTextExtractor --version 1.0.1
NuGet\Install-Package PdfTextExtractor -Version 1.0.1
<PackageReference Include="PdfTextExtractor" Version="1.0.1" />
paket add PdfTextExtractor --version 1.0.1
#r "nuget: PdfTextExtractor, 1.0.1"
// Install PdfTextExtractor as a Cake Addin #addin nuget:?package=PdfTextExtractor&version=1.0.1 // Install PdfTextExtractor as a Cake Tool #tool nuget:?package=PdfTextExtractor&version=1.0.1
PdfTextExtractor
Simple C# library for extracting text and metadata from .pdf files
PdfTextExtractor provides simple methods for extracting text and metadata from .pdf files.
New in v1.0.x
- Initial release
Disclaimer
This library is a shell wrapper leveraging an excellent Python library called pdfplumber
. As such there are some constraints:
- The
pdfplumber
library is MIT-licensed and source can be found on Github: https://github.com/jsvine/pdfplumber - You must have Python v3.8, 3.9, 3.10, or 3.11 installed
- Python must be accessible in your path as
py
- You must
pip install pdfplumber
and associated dependencies
This library has been tested on a limited set of documents. It is highly likely that documents exist this from which the library, in its current state, cannot extract text.
Simple Examples
Refer to the Test
project for a full example.
using DocumentTextExtractor;
void Main(string[] args)
{
using (PdfTextExtractor pdf = new PdfTextExtractor("mydocument.docx"))
{
string text = docx.ExtractText();
Dictionary<string, string> metadata = docx.ExtractMetadata();
}
}
Version History
Please refer to CHANGELOG.md.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release. NOTE: requires Python and the Python package pdfplumber.