This depends greatly on the content of the pdf. I just gzipped a few random pdfs and got between 4.2% and 51.6% reduction.

> ls -lh ?.pdf -rwxrwx--- 1 root vboxsf 4.0M Jun 2 15:01 1.pdf* -rwxrwx--- 1 root vboxsf 1.9M Jun 2 15:01 2.pdf* -rwxrwx--- 1 root vboxsf 1.2M Jun 2 15:01 3.pdf* -rwxrwx--- 1 root vboxsf 340K Jun 2 15:01 4.pdf* -rwxrwx--- 1 root vboxsf 69K Jun 2 15:01 5.pdf* -rwxrwx--- 1 root vboxsf 416K Jun 2 15:01 6.pdf* > gzip -v ?.pdf 1.pdf: 19.5% -- replaced with 1.pdf.gz 2.pdf: 23.2% -- replaced with 2.pdf.gz 3.pdf: 51.6% -- replaced with 3.pdf.gz 4.pdf: 4.2% -- replaced with 4.pdf.gz 5.pdf: 8.3% -- replaced with 5.pdf.gz 6.pdf: 6.2% -- replaced with 6.pdf.gz > ls -lh ?.pdf.gz -rwxrwx--- 1 root vboxsf 3.3M Jun 2 15:01 1.pdf.gz* -rwxrwx--- 1 root vboxsf 1.4M Jun 2 15:01 2.pdf.gz* -rwxrwx--- 1 root vboxsf 557K Jun 2 15:01 3.pdf.gz* -rwxrwx--- 1 root vboxsf 326K Jun 2 15:01 4.pdf.gz* -rwxrwx--- 1 root vboxsf 63K Jun 2 15:01 5.pdf.gz* -rwxrwx--- 1 root vboxsf 390K Jun 2 15:01 6.pdf.gz*

In reply to Re^2: Zipping the contents of a directory by filename by jeffenstein
in thread Zipping the contents of a directory by filename by justin423

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.