Giter Club home page Giter Club logo

xpdf_python's Introduction

Simple fork of the original repo to fix the bash installer scripts, if you had the SystemExit: Did not detect correctly installed xpdf. error this is the right repo for you.

PLUS: Added to_png extraction wrapper (for png extraction you need Pillow library pip install Pillow)

xpdf python

version number: 0.0.10

author: Edward Atkins

python >= 3.4

Overview

Python wrapper for xpdf (currently just the "pdftotext" utility)

Installation / Usage

To install using pip from pypi:

$ pip install xpdf_python

To install using pip from github:

$ pip install git+https://github.com:/ecatkins/xpdf_python

To make this work you have to install xpdf in your system, you can find more info and the download link here: http://www.xpdfreader.com I also updated the bash scripts that automatically install xpdf, so if it fails simply run the script in install_xpdf subdirectory

Clone the repo:

$ git clone https://github.com/Togn3K/xpdf_python.git
$ python setup.py install

The package will attempt to automatically install xpdf. If this fails use either:

  1. Instructions for your OS found here OR
  2. The bash scripts found in this repo's install_xpdf subdirectory

Operating Systems

macOS, Linux

Note: For Linux you may need to install the libxp6 library:

sudo apt install libxp6 (Ubuntu)
sudo yum install libXp.so.6 (Centos)

Example

from xpdf_python import to_text

pdf_location = '/path/to/my.pdf'
text = to_text(pdf_location)

Supported by

xpdf_python's People

Contributors

ecatkins avatar togn3k avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.