domingo, 30 de março de 2014

Diminuindo tamanho de arquivos pdf


O Ghost Script faz isto.

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/print -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/press -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

Copiar a partir da linha de comando

Sim, dá vontade de copiar sem usar o tal do mouse. Time is scarse. O tal do xclip é uma benção!
Instalação padrão:

sudo apt-get install xclip

Tente estes exemplos:

uptime | xclip

date | xclip

ls -la | xclip

cat arquivo.log | xclip


Bom, he?

Fonte:

http://linuxtidbits.wordpress.com/2008/02/22/command-line-to-clipboard/