slate3k


Nameslate3k JSON
Version 0.5.3 PyPI version JSON
download
home_pagehttps://github.com/TakesxiSximada/slate3k
SummaryExtract text from PDF documents easily.
upload_time2017-02-19 05:38:05
maintainer
docs_urlNone
authorTakesxiSximada
requires_python
licenseMIT License
keywords pdf text text-extraction
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ======================================================
slate: the easiest way to get text from PDFs in Python
======================================================


THIS PROJECT IS A FORK OF slate
================================

Original project is https://github.com/timClicks/slate . It is not supported Python3.
I thank the original writer @timClicks and other contributors.


Slate
=====

Slate is a Python package that simplifies the process of extracting
text from PDF files. It depends on the PDFMiner package.

Slate provides one class, PDF. PDF takes a file-like object and
will extract all text from the document, presentating each page
as a string of text::

    >>> with open('example.pdf', 'rb') as f:
    ...    doc = slate.PDF(f)
    ...
    >>> doc
    [..., ..., ...]
    >>> doc[1]
    'Text from page 2...'

If your pdf is password protected, pass the password as the
second argument::

    >>> with open('secrets.pdf', 'rb') as f:
    ...     doc = slate.PDF(f, 'password')
    ...
    >>> doc[0]
    "My mother doesn't know this, but..."

More complex operations
-----------------------

If you would like access to the images, font files and other
information, then take some time to learn the PDFMiner API.


What is wrong with PDFMiner?
----------------------------

1. Getting simple things done, like extracting the text
   is quite complex. The program is not designed to return
   Python objects, which makes interfacing things irritating.
2. It's an extremely complete set of tools, with multiple
   and moderately  steep learning curves.
3. It's not written with hackability in mind.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/TakesxiSximada/slate3k",
    "name": "slate3k",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "pdf,text,text-extraction",
    "author": "TakesxiSximada",
    "author_email": "sximada@gmail.com",
    "download_url": "",
    "platform": "",
    "description": "======================================================\nslate: the easiest way to get text from PDFs in Python\n======================================================\n\n\nTHIS PROJECT IS A FORK OF slate\n================================\n\nOriginal project is https://github.com/timClicks/slate . It is not supported Python3.\nI thank the original writer @timClicks and other contributors.\n\n\nSlate\n=====\n\nSlate is a Python package that simplifies the process of extracting\ntext from PDF files. It depends on the PDFMiner package.\n\nSlate provides one class, PDF. PDF takes a file-like object and\nwill extract all text from the document, presentating each page\nas a string of text::\n\n    >>> with open('example.pdf', 'rb') as f:\n    ...    doc = slate.PDF(f)\n    ...\n    >>> doc\n    [..., ..., ...]\n    >>> doc[1]\n    'Text from page 2...'\n\nIf your pdf is password protected, pass the password as the\nsecond argument::\n\n    >>> with open('secrets.pdf', 'rb') as f:\n    ...     doc = slate.PDF(f, 'password')\n    ...\n    >>> doc[0]\n    \"My mother doesn't know this, but...\"\n\nMore complex operations\n-----------------------\n\nIf you would like access to the images, font files and other\ninformation, then take some time to learn the PDFMiner API.\n\n\nWhat is wrong with PDFMiner?\n----------------------------\n\n1. Getting simple things done, like extracting the text\n   is quite complex. The program is not designed to return\n   Python objects, which makes interfacing things irritating.\n2. It's an extremely complete set of tools, with multiple\n   and moderately  steep learning curves.\n3. It's not written with hackability in mind.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Extract text from PDF documents easily.",
    "version": "0.5.3",
    "split_keywords": [
        "pdf",
        "text",
        "text-extraction"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cbe3f27cac1dd24617894cf7ddb5da13beca27c9236736466bebaf5dd2a902c1",
                "md5": "17ab7e0b59214b8bbf9b36ca9c6b4abb",
                "sha256": "c40b47fdcccaedb3ef4fd8dcc058d7e10c5967b33c69858aabf3b1fb3467d6eb"
            },
            "downloads": -1,
            "filename": "slate3k-0.5.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "17ab7e0b59214b8bbf9b36ca9c6b4abb",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 7851,
            "upload_time": "2017-02-19T05:38:05",
            "upload_time_iso_8601": "2017-02-19T05:38:05.798692Z",
            "url": "https://files.pythonhosted.org/packages/cb/e3/f27cac1dd24617894cf7ddb5da13beca27c9236736466bebaf5dd2a902c1/slate3k-0.5.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2017-02-19 05:38:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "TakesxiSximada",
    "github_project": "slate3k",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "slate3k"
}
        
Elapsed time: 0.04838s