LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-27-2016, 11:27 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
How to compress pdf file


Hi all,

Is there an easy way to compress pdf file? I don't have pdf-compressor installed.

Existing pdf size - 9.5MB
I need to compress it to about 3MB

I used the online pdf compressor
http://www.ilovepdf.com/compress_pdf

compressing it to 4.6MB. But I couldn't compress it again, the second time.

I have "convert" here.

Please help. Thanks

Regards
satimis
 
Old 08-27-2016, 01:12 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
what is in this pdf ????
text ONLY ?
a bunch of png or jpg images ?

what ?

i find that xz compresses the most
Code:
xz -z9kv  Whatever.pdf
 
Old 08-27-2016, 06:49 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by John VV View Post
what is in this pdf ????
text ONLY ?
a bunch of png or jpg images ?

what ?

i find that xz compresses the most
Code:
xz -z9kv  Whatever.pdf
Hi,

It is completed "Form", scanned

satimis
 
Old 08-27-2016, 07:43 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
so a image

is it a tiff?
jpg?
png?
windows bmp ?
what ?

for images reduce the size
or
if it is a black and white form there is NO need for it to be a Red Green Blue image
convert it to grayscale
or a 8 bit gif
 
Old 08-28-2016, 04:38 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
8bit png usually compresses best, but depending on the quality/contrast of the original, jpg can be better.

so, edit the image in gimp, export to pdf?

if you use png, pngquant is really helpful with compressing!
 
Old 08-28-2016, 07:55 AM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi all,

Thanks for your advice.

The pdf file was received from another company not created/scanned by me. I have no way to recreate it. The file consists several pages. Can I split it into 2 pdf files?

satimis
 
Old 08-28-2016, 09:40 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
ok.
search indicates that this can be done with fairly standard linux programs like gs (ghostscript) or convert (imagemagick).
 
Old 08-28-2016, 09:52 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Good luck. It depends entirely upon what the producer of the file did (or didn't do).
 
Old 08-29-2016, 01:56 PM   #9
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
@John VV was trying to steer you in the right direction. If you really need to reduce the size then you need to extract the image files and reduce their size to the smallest, but still legible, size. Then recreate the pdf using those smaller images. That will give you a smaller pdf. There are numerous tools to recreate a pdf from images.
 
Old 09-22-2017, 07:09 AM   #10
Tradekare
LQ Newbie
 
Registered: Sep 2017
Posts: 1

Rep: Reputation: Disabled
Having read this I thought it was rather enlightening. I appreciate you finding the time and energy to put this content together. I once again find myself spending a lot of time both reading and posting comments. But so what, it was still worthwhile!.
 
Old 09-22-2017, 03:25 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,997

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Tradekare, hello and welcome to LQ.

The posts do try to serve others as well as the Original Poster (OP). We try to keep the technical threads follow up posts as close to the original question as possible.
 
Old 09-22-2017, 08:15 PM   #12
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,342
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
It's a bit cumbersome with multi-page PDFs, but I've done this with *.PDFs that were too large in dimension so I could post them on a website:
  • import the page(s) into the GIMP,
  • resize and otherwise manipulate them as images,
  • save the separate images,
  • reassemble them in a word processor, such as LiberOffice, and save them in as many parts as you want.

I do know that rar compression program has the capability to splitting files into multiple parts during compression, but it requires a small registration fee. It's very popular on Usenet because of this feature. There is a Linux version available; it's strictly command line.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] merge pdf files with each file as a index entry in the big pdf ununun Linux - General 4 12-08-2017 07:23 AM
[SOLVED] Combining Xournal annotations with original PDF to get single PDF file anon112 Linux - Software 1 04-06-2015 04:11 PM
[SOLVED] lp doesn't print file to pdf directory after installing cups-pdf using synaptic mrcj Debian 1 10-09-2013 07:18 PM
How to search contents of multiple pdf files and return the pdf's file name? Hoxygen232 Linux - Newbie 4 04-28-2013 09:39 AM
Compress pdf-file jonaskellens Linux - Newbie 3 04-06-2011 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:28 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration