Skip to content

Instantly share code, notes, and snippets.

@wikrie
Last active September 25, 2017 21:35
Show Gist options
  • Save wikrie/ee78231a6a20ad6550b3394fc6c1f2a3 to your computer and use it in GitHub Desktop.
Save wikrie/ee78231a6a20ad6550b3394fc6c1f2a3 to your computer and use it in GitHub Desktop.
shrink size of a pdf file with kde kdialog
#!/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