Skip to content

nissl-lab/toxy

Repository files navigation

NuGet netstandard2.0 netstandard2.1 License

What's Toxy

Toxy is a .NET data/text extraction framework similar to Apache Tika in Java. It supports a lot of popular formats such as docx, xlsx, xls, pdf, csv, txt, epub, html and so on.

image

Why Toxy

In the past, we have to use IFilter to extract texts from other documents. But Toxy is platform independent. It will try to support not only Windows but also Linux. Toxy is very easy to use and friendly. You don't need to care much about what extension you are extracting because it is a clever framework to help identify the file formats and extract the data/text into a unified structure.

Toxy Objects

  • ToxyDocument - the data structure extracted for documents
  • ToxySpreadsheet - the data structure extracted for spreadsheets
  • ToxyEmail - the data structure extracted for emails
  • ToxyBusinessCard - the data structure extracted for business cards
  • ToxyDom - the data structure extracted for DOM based document
  • ToxyMetadata - the data structure extracted for other files with meta data

F# Type Provider

Toxy.TypeProvider is an F# Type Provider built on top of Toxy. It inspects a sample document at compile/design time and generates a strongly-typed metadata schema, giving F# users IntelliSense and compile-time safety over document metadata fields such as Author, Title, Created, and more.

#r "nuget: Toxy.TypeProvider"
open Toxy.TypeProvider

type Invoice = ToxyDocument<"samples/invoice.pdf">

let doc = Invoice.Parse("path/to/my.pdf")
printfn "Author: %s" doc.Metadata.Author

About

.net text extraction & export framework

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors