GithubHelp home page GithubHelp logo

shrinkpdf's Introduction

Shrinkpdf

CodeFactor

Reduce size of PDF (compress) using Ghostscript at terminal.

Execution

Move the shrinkpdf.sh to your system execution folder (e.g. /bin/ in Linux distro). Give it permissions to execute

chmod +x ~/bin/shrinkpdf.sh

First parameter (input.pdf): filename of the PDF that is to be converted

Second parameter (output.pdf): filename of the converted PDF

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.

Run it as follows:

~/bin/shrinkpdf.sh input.pdf output.pdf

~/bin/shrinkpdf.sh input.pdf output.pdf 100

~/bin/shrinkpdf.sh input.pdf output.pdf 120

If you don't want to install shrinkpdf in the system, just run

bash shrinkpdf.sh input.pdf output.pdf 72

Credits

https://bash.cyberciti.biz/file-management/linux-shell-script-to-reduce-pdf-file-size/

shrinkpdf's People

Contributors

jishanshaikh4 avatar restyled-commits avatar he-ro avatar

Stargazers

 avatar Valensce avatar Gábor Mihálcz avatar Phillip Crandall avatar manoj uppala avatar Lucas A. Batista avatar Isaac Gazimbe avatar King Spec avatar Andreas Motl avatar Abdullah Dahmash avatar trashman avatar Metin Yazici avatar M. Vincze avatar  avatar Sultan Tyagi avatar Indra Joshi avatar Ekansh Dixit avatar Sunita Agarwal avatar Mamba Dhakad avatar  avatar Jae Que avatar Jishan Shaikh avatar Prateek Jain avatar Ajay Devda avatar Retro Developer avatar  avatar

Watchers

James Cloos avatar  avatar

shrinkpdf's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.