Skip to main content

PDF parser

Project description

# PDFMajor

PDF-Major is a fork of PDFMiner.six. It is meant to be a more light-weight implementation that makes fewer assumptions on the data. Additionally, this version intends to be more up to date with recent versions of python and make liberal use of the typing capabilities of python for improved future maintainability.

## Documentation

See documentation [here](https://asosnovsky.github.io/pdfmajor/).

## Why Another Fork?

PDFMiner was designed to run in python 2.7>, PDFMiner.six was written to bring cross-version support for python 2 and 3. This versions intends to make use of the latest improvement in the python language while remaining fairly simple to develop with.

## Features

  • Written entirely in Python.

  • Parse, analyze, and convert PDF documents.

  • PDF-1.7 specification support. (well, almost)

  • CJK languages and vertical writing scripts support.

  • Various font types (Type1, TrueType, Type3, and CID) support.

  • Basic encryption (RC4) support.

  • Font-Color extraction

  • Shape fill and stroke color extraction

Note: We took out the layout-analysis process in this version (there is no more LTTextHorizontal or LTTextVertical). While the mathematics behind the grouping process was sound, the coupling of the layout-analysis process with the parsing and interpretation process produced unfriendly-code. This feature could be brought back by extending the pdfmajor.layouts.PDFLayoutAnalyzer class, but at the current time is not supported.

## How to Install

### Source

  • Install Python 3.6.4 or newer.

  • clone this repo

    git clone https://github.com/asosnovsky/pdfmajor

  • install repo

    python setup.py install

### Pypi
  • Install Python 3.6.4 or newer.

  • install repo

    pip install pdfmajor

## Terms and Conditions

(This is so-called MIT/X License)

Copyright (c) 2018-2019 Ariel Sosnovsky <ariel at sosnovsky dot ca>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

pdfmajor-1.1.2.tar.gz (95.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pdfmajor-1.1.2-py3.7.egg (278.6 kB view details)

Uploaded Egg

pdfmajor-1.1.2-py3-none-any.whl (114.1 kB view details)

Uploaded Python 3

File details

Details for the file pdfmajor-1.1.2.tar.gz.

File metadata

  • Download URL: pdfmajor-1.1.2.tar.gz
  • Upload date:
  • Size: 95.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pdfmajor-1.1.2.tar.gz
Algorithm Hash digest
SHA256 eb56ba89a6882e8a00057335a4904a0faec03819ee2a6723092af688a17b958c
MD5 8511b282fac27cabc4870882b00e0e9f
BLAKE2b-256 07564cea3f13303c60cd160c9688e16262403a04fedad18353292817857e4335

See more details on using hashes here.

File details

Details for the file pdfmajor-1.1.2-py3.7.egg.

File metadata

  • Download URL: pdfmajor-1.1.2-py3.7.egg
  • Upload date:
  • Size: 278.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pdfmajor-1.1.2-py3.7.egg
Algorithm Hash digest
SHA256 7ac1671000aefa39d7ebd018289270f49899acd7f7a48ec301c01fe421754b61
MD5 7e4b143f0b01491580485020895d330c
BLAKE2b-256 7035cf7c89792c844842a006e1aab07b10983bb5009d9982d74d2abb14bd3012

See more details on using hashes here.

File details

Details for the file pdfmajor-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: pdfmajor-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 114.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pdfmajor-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cdbcbcfb2d2a8d428fedc654556f7a23775f7b58e0d8e403c3f1764788e50c08
MD5 4b6a9bd6a741cd7bb29ef1aa5b000d4a
BLAKE2b-256 684cf611f04a10b2caa38f6a6591f0e8fa56e11c248ab1416f3a78647c8cd9fc

See more details on using hashes here.

Supported by

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