LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compress pdf-file (https://www.linuxquestions.org/questions/linux-newbie-8/compress-pdf-file-873355/)

jonaskellens 04-06-2011 10:00 AM

Compress pdf-file
 
Hello,

I have scanned a document and saved it as pdf-document with xsane.
The size is 17.6MB

I can not compress this pdf document, it seems.

I've tried the zip command, but it stays 17.6MB
Code:

zip IN in-A.pdf
I've tried pdftk, but it stays 17.6MB
Code:

pdftk in-A.pdf output in-Aa.pdf compress
Code:

-rw-r--r--. 1 root  root  18M 2011-04-06 16:59 in-Aa.pdf
-rw-r-----. 1 Jonas Jonas  18M 2011-04-06 16:21 in-A.pdf
-rw-rw-r--. 1 Jonas Jonas  18M 2011-04-06 16:44 IN.zip

How can I reduce the file size ?

TobiSGD 04-06-2011 10:10 AM

I would assume that your image is a JPG embedded inside the PDF. So the next time I would directly scan to JPG and choose a resolution/DPI-value that will give you a smaller size. For now you have to extract the JPG from the PDF to compress it.

jefro 04-06-2011 05:10 PM

Or convert to text.

Nermal 04-06-2011 05:13 PM

Quote:

Originally Posted by jonaskellens (Post 4315910)
I've tried the zip command, but it stays 17.6MB
Code:

zip IN in-A.pdf
I've tried pdftk, but it stays 17.6MB
Code:

pdftk in-A.pdf output in-Aa.pdf compress
Code:

-rw-r--r--. 1 root  root  18M 2011-04-06 16:59 in-Aa.pdf
-rw-r-----. 1 Jonas Jonas  18M 2011-04-06 16:21 in-A.pdf
-rw-rw-r--. 1 Jonas Jonas  18M 2011-04-06 16:44 IN.zip

How can I reduce the file size ?

Try
Code:

zip -9 IN in-A.pdf


All times are GMT -5. The time now is 06:12 AM.