Multi-column PDF to Text
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mc-pdf2txt-0.1.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for mc_pdf2txt-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d21fb82b47bd32a3acb69eda1979f33e758fad1b3938d84e4443023c5c258ef0 |
|
MD5 | 1679c7cc3677b445e5b07667ec98e405 |
|
BLAKE2b-256 | 257a7a10845a636187ab08f043efd253c0dd9544278a3554ecd550ac27b56e8b |