PdfTextExtractor 1.0.1

dotnet add package PdfTextExtractor --version 1.0.1
NuGet\Install-Package PdfTextExtractor -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PdfTextExtractor" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PdfTextExtractor --version 1.0.1
#r "nuget: PdfTextExtractor, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

PdfTextExtractor

Simple C# library for extracting text and metadata from .pdf files

NuGet Version NuGet

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 139 3/27/2024
1.0.0 1,804 8/11/2023

Initial release.  NOTE: requires Python and the Python package pdfplumber.