linux compress a pdf

Shell
ps2pdf large.pdf small.pdf
Source

Also in Shell: