Skip to main content

The ReportLab Toolkit

Project description

=====================================
README
=====================================

(C) Copyright ReportLab Europe Ltd. 2000-2015.
See ``LICENSE.txt`` for license details.

This is the ReportLab PDF Toolkit. It allows rapid creation
of rich PDF documents, and also creation of charts in a variety
of bitmap and vector formats.

This library is also the foundation for our commercial product
Report Markup Language (RML), available in the ReportLab PLUS
package. RML offers many more features, a template-based style
of document development familiar to all web developers, and
higher development productivity. Please consider trying out
RML for your project, as the license sales support our open
source development.

Contents of this file:

1. Licensing

2. Installation

2.1 Source Distribution or Subversion

2.2 Manual Installation without C Compiler (e.g. Windows)

2.3 easy_install

2.4 Windows .exe Installer

2.5 Ubuntu and other Debian-based Systems

3. Prerequisites / Dependencies

4. Documentation

5. Acknowledgements and Thanks


1. Licensing
============
BSD license. See ``LICENSE.txt`` for details.


2. Installation
===============

In most cases, ``easy_install reportlab`` or ``pip install reportlab`` will
do the job. Full details follow below for each platform.


2.1 General prerequisites
--------------------------
You need to have installed Python (versions 2.7 or >=3.3),
and ideally PIL or Pillow with Freetype support; more notes on prerequisites
follow below.

2.2. Where to get the code
------------------------------------------
Latest builds are available from ReportLab's
open source download area::

https://www.reportlab.com/pypi/

Main releases are also available from the Python Package Index:

http://pypi.python.org/

From March 2013, the code is being hosted in Mercurial on BitBucket.
You can obtain the latest code from our Mercurial repository with::

hg clone https://bitbucket.org/rptlab/reportlab


Users of our commercial libraries, and/or anyone who registers on our site,
can also access our commercial area which has exactly the same packages,
paired with the matching commercial ones (rlextra); it is important to keep
both in sync.




2.3 Windows Packages
--------------------
We no longer made .exe or .msi files. We provide ``.whl`` files with compiled
C extensions for all supported python versions at

http://pypi.python.org/pypi/reportlab/

These may be installed using recent `pip` or other competent distribution
package. If you aren't comfortable with the command line, we recommend pip-win:
https://sites.google.com/site/pydatalog/python/pip-for-windows

This will NOT install the tests, examples and documentation. If you want
to learn your way around the package or do development with it on Windows,
we suggest you also obtain source from https://bitbucket.org/rptlab/reportlab
and work with the examples/tests within that directory.

2.4 Mac OS
-------------
On Mac OS, you will need XCode with the Command Line Tools option installed
in order to compile the C extensions. On Lion
or later, type ``clang`` at a prompt; if you get ``command not found`` or
similar, the C compiler is not installed.

We then recommend the *brew* installation tool to fetch open source packages.
You should run::

brew install freetype

before instaling *reportlab* to ensure that the Python Imaging Library gets
compiled with JPEG support.

Thereafter, you can install with ``easy_install reportlab`` or by fetching
the source and using ``python setup.py install``


2.5 Unix / Linux
-----------------

On Unix and Mac OS we assume a C compiler is available to compile the
C extensions.

On Ubuntu, you will need
*build-essential*, *libfreetype6-dev*, *python-dev* and *python-imaging*.
Most other Linux and xBSD distributions have packages with
similar names.


Thereafter, you can use ``easy_install reportlab``, ``pip install reportlab``,
or fetch the source and use ``python setup.py install``.

From Ubuntu 12.04 desktop onwards, a copy of reportlab is already installed.
Take care not to confuse it with any releases you download.




3. Prerequisites / Dependencies
===============================
This works with Python versions 2.7 or >=3.3. Older versions are available
going back to Python 1.5 or thereabouts.

There are no absolute prerequisites beyond the Python
standard library; but the Python Imaging Library (PIL or Pillow)
is needed to include images other than JPG inside PDF files.

The C extension are optional but anyone able to do so should
use _rl_accel as it helps achieve acceptable speeds when wrapping
paragraphs and measuring text string lengths. The
_renderPM extension allows graphics (such as charts) to be saved
as bitmap images for the web, as well as inside PDFs.


4. Documentation
================
Naturally, we generate our own manuals using the library.
In a 'built' distribution, they may already be present in the
docs/ directory. If not, execute ``python genAll.py`` in
that directory, and it will create three PDF manuals::

reportlab-userguide.pdf
reportlab-reference.pdf
reportlab-graphics-reference.pdf

These are also available in daily build form from the documentation
page on our web site. The manuals are very useful 'how-to' examples
if you are aiming to create long documents.

5. Test suite
=============
Tests are in the ``tests/`` directory. They can be executed by cd'ing into the
directory and executing ``python runAll.py``, or from ``python setup.py tests``.

The tests will simply try to 'import reportlab'. Be warned that if you already have a copy
of reportlab installed (which happens by default in Ubuntu 12.04 desktop), it may try to
run the installed reportlab and cause permission errors as it can't generate PDF files
without sudo rights.

If you do not have a copy insralled and run them prior to installation/compilation,
there may be one or two failures from tests which exercise the C extensions that have not
been compiled.

The tests mostly produce output files with the same name as the test, but extension
.pdf. It is worth reviewing the list of test scripts as they provide valuable 'how
to' information.

If you have no internet connection, one or two tests may fail where we try to load images
from URLs. This is normal. The next release of this package will silently skip
such tests using features only available in Python 2.7.

6. Demos
========
A small number of demo programs are included in ``demos/``, none of which are particularly
exciting, but which may have some intructional value. These were the first programs we
wrote back in 2000.

The *odyssey* demo serves as our benchmark suite. If you download the full Odyssey text,
you can generate a PDF of Homer's Odyssey with either (a) no wrapping, (b) simple paragraphs
or (c) paragraphs with enough artificial markup (bold/italic on certain words) to exercise
the parser.


7. Acknowledgements and Thanks
==============================
``lib/normalDate.py`` originally by Jeff Bauer.

Many, many contributors have helped out between 2000 and 2013.
We try to keep a list in the first chapter of the User Guide; if you
have contributed and are not listed there, please let us know.

Project details


Release history Release notifications | RSS feed

This version

3.2.0

Download files

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

Source Distribution

reportlab-3.2.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distributions

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

reportlab-3.2.0.0-cp33-none-win32.whl (2.0 MB view details)

Uploaded CPython 3.3Windows x86

reportlab-3.2.0-cp34-none-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.4Windows x86-64

reportlab-3.2.0-cp34-none-win32.whl (2.0 MB view details)

Uploaded CPython 3.4Windows x86

reportlab-3.2.0-cp33-none-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.3Windows x86-64

reportlab-3.2.0-cp27-none-win_amd64.whl (2.1 MB view details)

Uploaded CPython 2.7Windows x86-64

reportlab-3.2.0-cp27-none-win32.whl (2.0 MB view details)

Uploaded CPython 2.7Windows x86

File details

Details for the file reportlab-3.2.0.tar.gz.

File metadata

  • Download URL: reportlab-3.2.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for reportlab-3.2.0.tar.gz
Algorithm Hash digest
SHA256 72e687662bd854776407b9108483561831b45546d935df8b0477708199086293
MD5 79d059e797c557aed4b40c68dd6c7eae
BLAKE2b-256 57d1d4f74b67c7e0fd129c1db12453c8b031c871ebb3585e37da95dcd384d56e

See more details on using hashes here.

File details

Details for the file reportlab-3.2.0.0-cp33-none-win32.whl.

File metadata

File hashes

Hashes for reportlab-3.2.0.0-cp33-none-win32.whl
Algorithm Hash digest
SHA256 ef7a5aca01c093f062b4f37b9a9aef4c53d5814ebf570679392cf58c7190c4d9
MD5 3dfca259046567b033223202a92ec65a
BLAKE2b-256 941fd7d8ad5441d837550029bdaa37be8cac0f593b518af4aca02ab611ae6a29

See more details on using hashes here.

File details

Details for the file reportlab-3.2.0-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for reportlab-3.2.0-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 a7aa8e22217a1b88d00027c5bbfd2500bfd0fbab5485b7f74e88db10a13bc4b2
MD5 ca53841c0b4b6819694e1b5b9f85d9a5
BLAKE2b-256 cefd6b5615772ac57fb05b47c713ac9162b2f3a87a6659952e73dd1d15a9eba3

See more details on using hashes here.

File details

Details for the file reportlab-3.2.0-cp34-none-win32.whl.

File metadata

File hashes

Hashes for reportlab-3.2.0-cp34-none-win32.whl
Algorithm Hash digest
SHA256 bf87067d3b7dbedab7f7b7dcba2f35d5dc4a5d5623c52c701190f7ee4a7d5a86
MD5 7a759080ece2d9de431a89bbfe255354
BLAKE2b-256 06cf94592ef488182f1eb9a141b910aa1072070343262f2f297302b6fe6c138c

See more details on using hashes here.

File details

Details for the file reportlab-3.2.0-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for reportlab-3.2.0-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 fb12956e68c0e6faef3cb023935b4347dbe46992b82e1564c57c90d5c644fbde
MD5 aa26f3884a05472a2c4e88c3809eec47
BLAKE2b-256 21ab21c085a90ae0f619c41359126ace8c47a3f65b5e7766c5e68cf59f4750b9

See more details on using hashes here.

File details

Details for the file reportlab-3.2.0-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for reportlab-3.2.0-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 2361fb32c6f1f36b5fab76ebfa07cfce24389e5c2c1b47ca74eb54dfe8ecb4f6
MD5 1c53987e4be2c1d223f0f29487e0a59e
BLAKE2b-256 dac97b866f4a8574276d0735b831aa2a6770e2b9b0c86e1ffc37d4b4b980de26

See more details on using hashes here.

File details

Details for the file reportlab-3.2.0-cp27-none-win32.whl.

File metadata

File hashes

Hashes for reportlab-3.2.0-cp27-none-win32.whl
Algorithm Hash digest
SHA256 122258aed55cb639d8e334cbbf477822b9bc965771bdb1eb6e75b8318a042f76
MD5 4651e7bd0f27011c5660708c475112b3
BLAKE2b-256 b98356e9c109c552892431f8334120757db805acb3aded51482669e32a496ede

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