I needed to send a pdf, and it turned out way to big. Well, it was big, no doubt, since it consisted of 3 high-quality pictures, but anyway.
So, here's what I did.
$pdf2ps file.pdf file.ps
$ps2pdf file.ps file_.pdf
And the pdf got like 3 times smaller. Which was good.
Essentially, you can achieve the same by opening the pdf in Okular and doing a print to pdf - this is how I did it the first time.
There is, of course, the longer option:
$gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -sOutputFile=output.pdf input.pdf
So, here's what I did.
$pdf2ps file.pdf file.ps
$ps2pdf file.ps file_.pdf
And the pdf got like 3 times smaller. Which was good.
Essentially, you can achieve the same by opening the pdf in Okular and doing a print to pdf - this is how I did it the first time.
There is, of course, the longer option:
$gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -sOutputFile=output.pdf input.pdf
Няма коментари:
Публикуване на коментар