Last active
September 25, 2017 21:35
-
-
Save wikrie/ee78231a6a20ad6550b3394fc6c1f2a3 to your computer and use it in GitHub Desktop.
shrink size of a pdf file with kde kdialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
file=`kdialog --getopenfilename /home '*.pdf'` | |
pdf2ps $file tmp.ps && ps2pdf tmp.ps $file-small.pdf && rm tmp.ps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment