LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to compress pdf file (https://www.linuxquestions.org/questions/linux-general-1/how-to-compress-pdf-file-4175588120/)

satimis 08-27-2016 11:27 AM

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

John VV 08-27-2016 01:12 PM

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

satimis 08-27-2016 06:49 PM

Quote:

Originally Posted by John VV (Post 5596969)
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

John VV 08-27-2016 07:43 PM

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

ondoho 08-28-2016 04:38 AM

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!

satimis 08-28-2016 07:55 AM

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

ondoho 08-28-2016 09:40 AM

ok.
search indicates that this can be done with fairly standard linux programs like gs (ghostscript) or convert (imagemagick).

sundialsvcs 08-28-2016 09:52 AM

Good luck. It depends entirely upon what the producer of the file did (or didn't do).

Rinndalir 08-29-2016 01:56 PM

@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.

Tradekare 09-22-2017 07:09 AM

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!.

jefro 09-22-2017 03:25 PM

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.

frankbell 09-22-2017 08:15 PM

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.


All times are GMT -5. The time now is 10:39 PM.