{"id":22917378,"url":"https://github.com/xiejiss/pdf-tools","last_synced_at":"2025-09-05T07:35:32.655Z","repository":{"id":106479276,"uuid":"561265937","full_name":"XieJiSS/pdf-tools","owner":"XieJiSS","description":"Useful PDF tools to work with PDF translation platforms.","archived":false,"fork":false,"pushed_at":"2024-07-12T08:21:55.000Z","size":15,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-12T09:45:35.274Z","etag":null,"topics":["pdf","pdf-document-processor"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XieJiSS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-03T10:18:16.000Z","updated_at":"2024-07-12T08:21:58.000Z","dependencies_parsed_at":"2023-12-12T15:57:04.718Z","dependency_job_id":null,"html_url":"https://github.com/XieJiSS/pdf-tools","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XieJiSS%2Fpdf-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XieJiSS%2Fpdf-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XieJiSS%2Fpdf-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XieJiSS%2Fpdf-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XieJiSS","download_url":"https://codeload.github.com/XieJiSS/pdf-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229670083,"owners_count":18104815,"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":["pdf","pdf-document-processor"],"created_at":"2024-12-14T06:17:46.153Z","updated_at":"2024-12-14T06:17:46.648Z","avatar_url":"https://github.com/XieJiSS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdf-tools\n\nInstall PyPDF2 and pdfrw via `python3 -m pip install -r requirements.txt`.\n\nAlso, install `qpdf` before using any script. Make sure `qpdf` can be found directly in your `PATH`.\n\nIf you need to use `to_image.py`, you'll also need to have `poppler` installed in your `PATH` as well.\n\n- Windows: https://github.com/oschwartz10612/poppler-windows/releases/latest\n- MacOS: `brew install poppler`\n\n`remove_image.py` combines PyPDF2 and pdfrw's functionalities to achieve a better result. All scripts uses qpdf to produce a linearized PDF result that displays faster under bad network condition.\n\n```shell\n$ python3 remove_image.py \"./pdfs/Space OCR.pdf\"\n$ ls -alh ./pdfs\n-rw-r--r--   1 host  staff    25M Nov  3 14:24 Space OCR.pdf\n-rw-r--r--   1 host  staff   9.7M Nov  7 11:20 image_removed_pypdf2_only.pdf\n-rw-r--r--   1 host  staff   956K Nov  7 11:20 image_removed_pypdf2_pdfrw.pdf\n$ python3 remove_image.py --aggressive \"./pdfs/Space OCR.pdf\"\n$ ls -alh ./pdfs/image_removed_pypdf2_aggressive_pdfrw.pdf\n-rw-r--r--   1 host  staff   699K Nov  7 11:21 image_removed_pypdf2_aggressive_pdfrw.pdf\n```\n\nNote that the PDF produced by `side_by_side.py` works better with PDF readers that supports Two-Page View, e.g. Preview.app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiejiss%2Fpdf-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiejiss%2Fpdf-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiejiss%2Fpdf-tools/lists"}