{"id":13690485,"url":"https://github.com/timClicks/slate","last_synced_at":"2025-05-02T11:31:17.044Z","repository":{"id":1163180,"uuid":"1053216","full_name":"timClicks/slate","owner":"timClicks","description":"The simplest way to extract text from PDFs in Python","archived":false,"fork":false,"pushed_at":"2022-07-07T13:50:08.000Z","size":67,"stargazers_count":427,"open_issues_count":29,"forks_count":142,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-30T17:17:19.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://timmcnamara.co.nz/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timClicks.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-11-05T04:05:34.000Z","updated_at":"2025-02-26T20:51:51.000Z","dependencies_parsed_at":"2022-07-06T10:54:13.106Z","dependency_job_id":null,"html_url":"https://github.com/timClicks/slate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timClicks%2Fslate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timClicks%2Fslate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timClicks%2Fslate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timClicks%2Fslate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timClicks","download_url":"https://codeload.github.com/timClicks/slate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252030166,"owners_count":21683300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T17:00:19.882Z","updated_at":"2025-05-02T11:31:16.769Z","avatar_url":"https://github.com/timClicks.png","language":"Python","readme":"======================================================\nslate: the easiest way to get text from PDFs in Python\n======================================================\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  \u003e\u003e\u003e with open('example.pdf') as f:\n  ...    doc = slate.PDF(f)\n  ...\n  \u003e\u003e\u003e doc \n  [..., ..., ...]\n  \u003e\u003e\u003e doc[1]\n  'Text from page 2...'\n\nIf your pdf is password protected, pass the password as the\nsecond argument:\n\n  \u003e\u003e\u003e with open('secrets.pdf') as f:\n  ...     doc = slate.PDF(f, 'password')\n  ...\n  \u003e\u003e\u003e 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\n  1. 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.\n  2. It's an extremely complete set of tools, with multiple \n     and moderately  steep learning curves.\n  3. It's not written with hackability in mind.\n\n","funding_links":[],"categories":["Python","Libraries","📚 فهرست"],"sub_categories":["Python","کار با pdf"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FtimClicks%2Fslate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FtimClicks%2Fslate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FtimClicks%2Fslate/lists"}