Metadata-Version: 2.0
Name: tc-pdf
Version: 0.0.4
Summary: PDF Preview
Home-page: http://github.com/intellisense/tc_pdf
Author: Aamir Rind
Author-email: aamir.adnan.rind@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: libthumbor
Requires-Dist: tc-core
Requires-Dist: thumbor
Requires-Dist: tornado
Requires-Dist: Wand
Provides-Extra: tests
Requires-Dist: coverage; extra == 'tests'

Thumbor / PDF Preview
=====================

This extension provides preview for PDF.

Features
--------

Given a PDF URL return preview image of first page

Installation
------------

- Prerequisite: Following system libraries are required:

        - `ImageMagick <https://www.imagemagick.org/script/index.php>`_
        - `Ghostscript <https://www.ghostscript.com/>`_

- Install using ``pip``

    .. code-block:: bash

        $ pip install tc_pdf

- Register the extension within Thumbor's configuration file

    .. code-block:: bash

        COMMUNITY_EXTENSIONS = [
            'tc_pdf',
            ...
        ]

- Launch thumbor with the Thumbor Community custom application:

    .. code-block:: bash

        $ thumbor -a tc_core.app.App

Usage
-----

``tc_pdf`` handler route requires ``/pdf/`` in URL after all filters but before the resource URL part e.g.

    .. code-block::

        http://<thumbor_server>/unsafe/240x240/smart/pdf/localhost:8000/media/document/test.pdf


