Skip to main content

No project description provided

Project description

archminer

PyPI - Version PyPI - Python Version


archminer is a command-line tool that extracts text from a specific PDF, referred to as 'Marginados'. The text in the Marginados PDF was created through OCR, as the PDF is a scan. This tool tries to extract the text in reading order.

The tool makes assumptions specific to the Marginados PDF:

  • only certain pages are relevant
  • the text is layed out in two columns
  • each (relevant) page has a header line and a page number in the footer line

Table of Contents

Installation

pip install archminer

Usage

As mentioned above, this tool has expectations about the input PDF.

It is expected that you use it like this:

archminer --from-page 6 --to-page 590 Marginados_all.pdf top-bottom remove-top-bottom

This reads pages 6 through 590 from the PDF, determines the coordinates of the top (header) and bottom (footer) lines, then removes those lines and writes the text contents of the pages in reading order to Marginados_all.txt (because we did not specify an output file).

See archminer --help for the full usage.

License

archminer is distributed under the terms of the GPLv3 license or any later version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

archminer-1.1.0.tar.gz (15.4 kB view hashes)

Uploaded Source

Built Distribution

archminer-1.1.0-py3-none-any.whl (16.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page