LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-06-2011, 10:00 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 620

Rep: Reputation: 33
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 ?
 
Old 04-06-2011, 10:10 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
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.
 
1 members found this post helpful.
Old 04-06-2011, 05:10 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,731

Rep: Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445
Or convert to text.
 
Old 04-06-2011, 05:13 PM   #4
Nermal
Member
 
Registered: Jan 2009
Distribution: Debian
Posts: 59
Blog Entries: 2

Rep: Reputation: 6
Quote:
Originally Posted by jonaskellens View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripts for File Compress moorthygs Linux - Newbie 4 09-14-2007 02:12 AM
Compress folder to Zip file makan007 Red Hat 1 09-05-2006 04:27 AM
File Compress malru AIX 2 06-17-2006 09:40 PM
to compress a file or folder sanjay2004 Linux - Newbie 1 04-11-2006 08:28 AM
linux file compress syok Slackware 4 02-14-2006 06:01 PM


All times are GMT -5. The time now is 01:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration