File: install.rst

package info (click to toggle)
pdfminer 20200726-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,716 kB
  • sloc: python: 13,377; xml: 423; makefile: 95; sh: 3
file content (39 lines) | stat: -rw-r--r-- 1,198 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.. _install:

Install pdfminer.six as a Python package
****************************************

To use pdfminer.six for the first time, you need to install the Python
package in your Python environment.

This tutorial requires you to have a system with a working Python and pip
installation. If you don't have one and don't know how to install it, take a
look at `The Hitchhiker's Guide to Python! <https://docs.python-guide.org/>`_.

Install using pip
=================

Run the following command on the commandline to install pdfminer.six as a
Python package::

    pip install pdfminer.six


Test pdfminer.six installation
==============================

You can test the pdfminer.six installation by importing it in Python.

Open an interactive Python session from the commandline import pdfminer
.six::

    >>> import pdfminer
    >>> print(pdfminer.__version__)  # doctest: +IGNORE_RESULT
    '<installed version>'

Now you can use pdfminer.six as a Python package. But pdfminer.six also
comes with a couple of useful commandline tools. To test if these tools are
correctly installed, run the following on your commandline::

    $ pdf2txt.py --version
    pdfminer.six <installed version>