{"id":24795920,"url":"https://github.com/moroii69/gspdfc","last_synced_at":"2025-08-22T05:03:43.531Z","repository":{"id":299785968,"uuid":"920817709","full_name":"moroii69/gspdfc","owner":"moroii69","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-22T20:31:13.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T05:02:16.086Z","etag":null,"topics":["pdf-compression","python"],"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/moroii69.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,"zenodo":null}},"created_at":"2025-01-22T20:28:44.000Z","updated_at":"2025-04-19T13:11:56.000Z","dependencies_parsed_at":"2025-06-18T10:04:34.548Z","dependency_job_id":null,"html_url":"https://github.com/moroii69/gspdfc","commit_stats":null,"previous_names":["moroii69/gspdfc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moroii69/gspdfc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroii69%2Fgspdfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroii69%2Fgspdfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroii69%2Fgspdfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroii69%2Fgspdfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moroii69","download_url":"https://codeload.github.com/moroii69/gspdfc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroii69%2Fgspdfc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271588745,"owners_count":24785751,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-compression","python"],"created_at":"2025-01-30T00:30:02.625Z","updated_at":"2025-08-22T05:03:43.523Z","avatar_url":"https://github.com/moroii69.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## usage 🎯\n\nthis script leverages **ghostscript** under the hood, using its `pdfwrite` device to optimize pdfs by downsampling images, stripping metadata, and re-encoding content for smaller file sizes.\n\n### basic usage\ncompress all pdfs in a folder:\n```bash\n$ python compress.py /path/to/your/pdf/folder\n```\n\n### advanced options\n- **dry run**: simulate compression without modifying files.\n```bash\n$ python compress.py /path/to/your/pdf/folder --dry-run\n```\n\n- **max threads**: limit the number of concurrent threads.\n```bash\n$ python compress.py /path/to/your/pdf/folder --max-threads 4\n```\n\n- **min size**: skip files smaller than the specified size (in mb).\n```bash\n$ python compress.py /path/to/your/pdf/folder --min-size 10\n```\n\n- **log file**: save output to a log file.\n```bash\n$ python compress.py /path/to/your/pdf/folder --log-file output.log\n```\n\n- **verbose mode**: enable detailed output.\n```bash\n$ python compress.py /path/to/your/pdf/folder --verbose\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoroii69%2Fgspdfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoroii69%2Fgspdfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoroii69%2Fgspdfc/lists"}