{"id":19446644,"url":"https://github.com/jishanshaikh4/shrinkpdf","last_synced_at":"2025-06-28T20:09:11.520Z","repository":{"id":44932542,"uuid":"224781075","full_name":"jishanshaikh4/shrinkpdf","owner":"jishanshaikh4","description":"Reduce size of PDF (compress) using GhostScript at bash terminal","archived":false,"fork":false,"pushed_at":"2022-10-07T16:58:10.000Z","size":15,"stargazers_count":27,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T01:42:47.614Z","etag":null,"topics":["bash","bash-script","pdf","shell","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/jishanshaikh4.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}},"created_at":"2019-11-29T05:12:20.000Z","updated_at":"2025-02-26T09:02:15.000Z","dependencies_parsed_at":"2023-01-11T15:38:28.361Z","dependency_job_id":null,"html_url":"https://github.com/jishanshaikh4/shrinkpdf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jishanshaikh4/shrinkpdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jishanshaikh4%2Fshrinkpdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jishanshaikh4%2Fshrinkpdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jishanshaikh4%2Fshrinkpdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jishanshaikh4%2Fshrinkpdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jishanshaikh4","download_url":"https://codeload.github.com/jishanshaikh4/shrinkpdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jishanshaikh4%2Fshrinkpdf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262490403,"owners_count":23319285,"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":["bash","bash-script","pdf","shell","shell-script"],"created_at":"2024-11-10T16:14:38.747Z","updated_at":"2025-06-28T20:09:11.488Z","avatar_url":"https://github.com/jishanshaikh4.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Shrinkpdf\n[![CodeFactor](https://www.codefactor.io/repository/github/jishanshaikh4/shrinkpdf/badge)](https://www.codefactor.io/repository/github/jishanshaikh4/shrinkpdf)\n\nReduce size of PDF (compress) using Ghostscript at terminal.\n\n### Execution\n\nMove the shrinkpdf.sh to your system execution folder (e.g. /bin/ in Linux distro). Give it permissions to execute\n\n  ``chmod +x ~/bin/shrinkpdf.sh``\n  \n**First parameter (`input.pdf`):** filename of the PDF that is to be converted\n\n**Second parameter (`output.pdf`):** filename of the converted PDF\n\n**Third parameter:** The DPI (resolution) for the output PDF. Default value: 72. For more compression, lower DPI is better but the quality will be worse.\n\nRun it as follows:\n\n    ~/bin/shrinkpdf.sh input.pdf output.pdf\n  \n    ~/bin/shrinkpdf.sh input.pdf output.pdf 100\n\n    ~/bin/shrinkpdf.sh input.pdf output.pdf 120\n  \nIf you don't want to install shrinkpdf in the system, just run\n\n    bash shrinkpdf.sh input.pdf output.pdf 72\n\n#### Credits\n\nhttps://bash.cyberciti.biz/file-management/linux-shell-script-to-reduce-pdf-file-size/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjishanshaikh4%2Fshrinkpdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjishanshaikh4%2Fshrinkpdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjishanshaikh4%2Fshrinkpdf/lists"}