Categorygithub.com/pilinux/totext
repositorypackage
0.14.0
Repository: https://github.com/pilinux/totext.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

totext

A Go wrapper library to convert different types of documents to plain text.

Dependencies

To convert MS word doc files, install wv

For Ubuntu/Debian:

sudo apt install wv

For MacOs:

brew install wv

To convert PDF files, install poppler

For Ubuntu/Debian:

sudo apt install poppler-utils

For MacOs:

brew install poppler

To convert RTF files, install unrtf

For Ubuntu/Debian:

sudo apt install unrtf

For MacOs:

brew install unrtf

To convert HTML files, prettier is required

npm init
npm install --save-dev --save-exact prettier

To fetch remote web page and extract text

When a remote page is requested to be fetched by the application for the first time, it will download the latest version of Chromium browser automatically.

prettier is required

npm init
npm install --save-dev --save-exact prettier

Building command line tool

go mod tidy
chmod +x compile.sh
./compile.sh