Contents

toseefkhilji/tkdocumentparser

`TKDocumentParser` is a Swift package designed to simplify the process of extracting plain text from various document formats, including **PDF** and **DOCX**. This package provides a straightforward API for handling different types of documents and retrieving their textual conten

Table of Contents

- Usage Examples

Demo

To see TKDocumentParser in action, check out the example project included in the TKDocumentParserDemo repo. Open TKDocumentParserDemo.xcodeproj in Xcode to run the demo app and see how the package works.

Installation

Swift Package Manager

To add WingedSwift to your project, add the following line to your Package.swift file:

dependencies: [
    .package(url: "https://github.com/toseefkhilji/TKDocumentParser.git", from: "1.0.0")
]

And include TKDocumentParser as a dependency in your target:

targets: [
    .target(
        name: "YourTarget",
        dependencies: ["TKDocumentParser"]),
]

Usage

TKDocumentParser allows you to get plain text from documents.

Basic Example

import TKDocumentParser

do {
        let url = // your local file path
        let text = try TKDocumentParser.parseText(from: url)
        print("extractedText: \(text)")
} catch {
        print(error.localizedDescription)    
}

Documentation

Coming soon!!!

Contribution

Contributions are welcome! Please follow the steps below to contribute:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/new-feature)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature/new-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Package Metadata

Repository: toseefkhilji/tkdocumentparser

Default branch: main

README: README.md