coherentgraphics / cpdf-binaries

PDF Command Line Tools binaries for Linux, Mac, Windows
GNU Affero General Public License v3.0
604 stars 42 forks source link

smaller filesize on multiple runs on the same file, bug? #12

Closed necros2k7 closed 8 years ago

necros2k7 commented 8 years ago

subj

johnwhitington commented 8 years ago

Please supply an example file, and the command line you used.

Thanks.

necros2k7 commented 8 years ago

smpdf 1.pdf -o 2.pdf smpdf 2.pdf -o 3.pdf smpdf 3.pdf -o 4.pdf smpdf 4.pdf -o 5.pdf smpdf 5.pdf -o 6.pdf smpdf 6.pdf -o 7.pdf smpdf 7.pdf -o 8.pdf 1.pdf

johnwhitington commented 8 years ago
feast:Downloads john$ smpdf 1.pdf -o 2.pdf
Initial file size is 350140 bytes
Beginning squeeze: 15 objects
Squeezing page data and xobjects
Recompressing document
Final file size is 347861 bytes, 99.35% of original.
feast:Downloads john$ smpdf 2.pdf -o 3.pdf
Initial file size is 347861 bytes
Beginning squeeze: 15 objects
Squeezing page data and xobjects
Recompressing document
Final file size is 347863 bytes, 100.00% of original.
feast:Downloads john$ smpdf 3.pdf -o 4.pdf
Initial file size is 347863 bytes
Beginning squeeze: 15 objects
Squeezing page data and xobjects
Recompressing document
Final file size is 347858 bytes, 100.00% of original.
feast:Downloads john$ smpdf 4.pdf -o 5.pdf
Initial file size is 347858 bytes
Beginning squeeze: 15 objects
Squeezing page data and xobjects
Recompressing document
Final file size is 347859 bytes, 100.00% of original.
feast:Downloads john$ smpdf 5.pdf -o 6.pdf
Initial file size is 347859 bytes
Beginning squeeze: 15 objects
Squeezing page data and xobjects
Recompressing document
Final file size is 347861 bytes, 100.00% of original.

I can't replicate that here...

necros2k7 commented 8 years ago

Ehmm... feast:Downloads john$ smpdf 1.pdf -o 2.pdf Initial file size is 350140 bytes Beginning squeeze: 15 objects Squeezing page data and xobjects Recompressing document Final file size is 347861 bytes, 99.35% of original.

feast:Downloads john$ smpdf 3.pdf -o 4.pdf Initial file size is 347863 bytes Beginning squeeze: 15 objects Squeezing page data and xobjects Recompressing document Final file size is 347858 bytes, 100.00% of original.

I see original file can be reduced more with more iterations

necros2k7 commented 8 years ago

why close if it`s still make files smaller on multiple runs? 8-) reason is still unknown