Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Reduce PDF docs size on linux
SUBMITTED BY:
Guest
DATE:
Nov. 22, 2012, 4:24 a.m.
FORMAT:
Bash
SIZE:
550 Bytes
Raw
Download
Tweet
HITS:
1235
Go to comments
Report
By
producing
pdfs
by
your
own
(
maybe
from
word
processor
or
other
software
)
almost
always
you
will
obtain
documents
that
are
more
Kbts
avids
than
needed.
Here
's posted a single bash command line that will stream down the pdf size.
Before some concrete results I'
ve
obtained:
A
1
.2M
-->
97k
B
1
,2M
-->
120k
C
1
,5M
-->
152k
D
1
,6M
-->
97k
E
3
,0M
-->
253k
F
787k
-->
50k
and
so
on...
The
code:
gs
-sDEVICE
=
pdfwrite
-dCompatibilityLevel
=
1
.4
-dPDFSETTINGS
=
/screen
-dNOPAUSE
-dQUIET
-dBATCH
-sOutputFile
=
output.pdf
input.pdf
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus