mc-pdf2txt
Convert multi-column pdf to text with poppler and tesseract.
Install
(1) Install dependencies:
Install poppler.
sudo apt install poppler-utils
Install tesseract-ocr
sudo apt install tesseract-ocr
with the language data files of your choice, e.g.,
sudo apt install tesseract-ocr-jpn
(2) Install mc-pdf2txt
pip3 install mc-pdf2txt
Usage
Usage:
mc-pdf2txt [options] <input>...
Options:
-l LANG Language, such as `eng`, `jpn`, or `eng+jpn`.
<input> Input PDF file.
-o OUTPUT Output text file.
-r DPI Resolution of temporary image file [default: 600].
--timeout SEC Timeout in sec to exec `pdftoppm` [default: 60].
--page-separator LINE String to be output as page separator [default: ---].
--psm VALUE Page segmentation mode of `tessoract-ocr` [default: 3].
--verbose Verbose.
Metadata
Release files for mc-pdf2txt 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mc-pdf2txt-0.3.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mc_pdf2txt-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / mc-pdf2txt-0.3.0.tar.gz
| Download URL | mc-pdf2txt-0.3.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99418c5ea9c95059431e46613479ed22631ab2f82c7de972540cbe688793b26d
|
|
BLAKE2b-256 checksum How to use checksums |
9a3173bc9587ea4e0ec259e057a6689d00991402ce3c4f02a1c9d94759caf774
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / mc_pdf2txt-0.3.0-py3-none-any.whl
| Download URL | mc_pdf2txt-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8503100f7ad68413677fd8b8df09c5446e4064a1f5b3964e2c173e195d8317ae
|
|
BLAKE2b-256 checksum How to use checksums |
6c68c254f4a28e532e553b4f63f4ac2c16a346398657bbd4aa4c699ab306a1b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|