Tag: pdf

Ubuntu 14.04. Set okular default pdf reader

Edit file mimeapps.list nano ~/.local/share/applications/mimeapps.list change the row application/pdf=kde4-okularApplication_pdf.desktop kde4-okularApplication_pdf.desktop (the full name of okular) Edit file defaults.list sudo nano /etc/gnome/defaults.list change the rows as follow application/pdf=kde4-okularApplication_pdf.desktop application/vnd.adobe.xfdf=kde4-okularApplication_pdf.desktop application/vnd.fdf=kde4-okularApplication_pdf.desktop application/vnd.adobe.xdp+xml=kde4-okularApplication_pdf.desktop application/vnd.adobe.pdx=kde4-okularApplication_pdf.desktop application/fdf=kde4-okularApplication_pdf.desktop application/xdp=kde4-okularApplication_pdf.desktop pplication/xfdf=kde4-okularApplication_pdf.desktop application/pdx=kde4-okularApplication_pdf.desktop …

Ubuntu resize-shrink pdf from command line

Install ghostscript, for Ubuntu/Debian: sudo apt-get install ghostscript Resize your pdf  with the command: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf Replace the file names output.pdf and input.pdf with your file names. These …