https://github.com/splitbrain/gotextextract
Cross Platform text extractor for common office files
https://github.com/splitbrain/gotextextract
Last synced: 7 months ago
JSON representation
Cross Platform text extractor for common office files
- Host: GitHub
- URL: https://github.com/splitbrain/gotextextract
- Owner: splitbrain
- License: mit
- Created: 2023-05-08T07:56:43.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-20T07:20:50.000Z (over 2 years ago)
- Last Synced: 2025-02-28T20:04:27.239Z (12 months ago)
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Text Extractor
This is meant as a simple way to extract raw text contents from different file formats to be used in search indexing. It is not meant to display contents true to their orignal layout.
It currently supports the following file formats:
* `pdf` -- PDF using [ledongthuc/pdf](https://github.com/ledongthuc/pdf)
* `docx` -- Microsoft Word, naive extraction from the xml
* `odt` -- Open/Libreoffice Document, naive extraction from the xml
* `pptx` -- Microsoft Powerpoint, naive extraction from the xml
* `odp` -- Open/Libreoffice Presentation, naive extraction from the xml
## Usage
gotextextract [--type ]
Simply give the file to extract as argument. If no file type (see above) is given, it will try to guess it from the file extension. The extracted text will be printed to stdout.