Results 1 to 13 of 13

Thread: smpdf

  1. #1
    Member
    Join Date
    May 2008
    Location
    Kuwait
    Posts
    354
    Thanks
    37
    Thanked 38 Times in 23 Posts

    smpdf

    First I'd like to introduce SMPDF "Lossless PDF Compressor" (its visually lossless) you can refer to more details at https://github.com/coherentgraphics/...sPDFCompressor and its "community release" at http://community.coherentpdf.com/ there is binaries for different OS.

    here is a sample on SWF & FLV pdf files at
    http://download.macromedia.com/f4v/v...spec_v10_1.pdf
    original = 608,962 bytes
    FO(8.40)= 608,962 bytes
    SMPDF = 535,223 bytes
    SMPDF after FO = 535,223 bytes (because FO could not reduce it).

    http://wwwimages.adobe.com/www.adobe...ormat-spec.pdf
    Original = 1,724,258 bytes
    FO(8.40) = 1,677,408 bytes
    SMPDF = 1,488,957 bytes
    SMPDF after FO = 1,467,600 bytes

  2. Thanks (2):

    necros (12th July 2016),nikkho (13th July 2016)

  3. #2
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    552
    Thanks
    223
    Thanked 165 Times in 106 Posts
    Sounds interesting. Will take a look.

  4. #3
    Member
    Join Date
    Sep 2007
    Location
    Denmark
    Posts
    925
    Thanks
    57
    Thanked 116 Times in 93 Posts
    Sounded good until "its visually lossless"

    Every PDF optimizer that had said it did optimizations that was indistinguishable from the original was always.. well distinguishable. high res graphics was just not high res afterward when viewing it on a monitor with 100% zoom level.

    My question is how visually degrading is it? What tricks does it do is output lossless and what does it do that is visual lossless?

    --- edit ---
    to asnver some of my own questions

    unlike other PDF compressors, Lossless PDF Compressor:
    will not resample, reduce, or alter your images in any way
    will not prevent your PDF file from being edited afterward
    will not remove bookmarks, outlines, or other metadata

    Highly enjoy the bolded ( by me) part.

  5. Thanks:

    nikkho (13th July 2016)

  6. #4
    Member
    Join Date
    May 2008
    Location
    Kuwait
    Posts
    354
    Thanks
    37
    Thanked 38 Times in 23 Posts
    I used cpdf to decompress pdf streams and then smpdf to recompress but i got a minor gain till leanify is added to smpdf or cpdf then smpdf is enough https://github.com/johnwhitington/cpdf-source/issues/67

  7. #5
    Member
    Join Date
    Jul 2014
    Location
    Mars
    Posts
    199
    Thanks
    135
    Thanked 13 Times in 12 Posts
    hmm, it have an issue - smaller filesize on multiple runs on the same file, bug? last upd. on github was in 2015 8-(

  8. #6
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    552
    Thanks
    223
    Thanked 165 Times in 106 Posts
    Quote Originally Posted by necros View Post
    hmm, it have an issue - smaller filesize on multiple runs on the same file, bug? last upd. on github was in 2015 8-(
    Noticed that too. Surprisingly, it does not happen in all PDF I tried.

  9. #7
    Member
    Join Date
    May 2008
    Location
    Kuwait
    Posts
    354
    Thanks
    37
    Thanked 38 Times in 23 Posts
    CPDF v2.3 has been released.

    https://coherentpdf.com/blog/?p=92

    bin for Win,Mac & Linux :

    https://github.com/coherentgraphics/cpdf-binaries

  10. Thanks:

    necros (17th September 2019)

  11. #8
    Member
    Join Date
    May 2008
    Location
    Kuwait
    Posts
    354
    Thanks
    37
    Thanked 38 Times in 23 Posts
    It seems that unicode file name support was missed during compilation. A temporary windows compile is available through this link

    http://www.coherentpdf.com/16thSeptember2019.zip

  12. Thanks:

    necros (17th September 2019)

  13. #9
    Member
    Join Date
    Jul 2014
    Location
    Mars
    Posts
    199
    Thanks
    135
    Thanked 13 Times in 12 Posts
    pls support my bug report, author closed and ignores it but it still exist in 2.3 (multiple iterations of optimizing same file give random results)

    https://github.com/coherentgraphics/...ries/issues/12

  14. #10
    Member
    Join Date
    May 2008
    Location
    Kuwait
    Posts
    354
    Thanks
    37
    Thanked 38 Times in 23 Posts
    I tired before to replicate your case on my files but with no success.

    currently the new compile give the following
    original 350,140
    1st 347,923
    2nd 347,921
    3rd 347,921
    4th 347,918
    5th 347,915
    6th 347,916
    7th 347,918
    8th 347,918
    9th 347,915
    10tg 347,922

    but with PDFsizeopt i get 344,569
    CPDF after PSO gives 344,674

    CPDF can be used for quick optimizations and repair some damaged files but PSO can gain way more reduction on most cases.

    the file still has meta data after optimization and no tool can remove them safely.

    but still running multiple run be added to File-Optimizer to automate the file size comparing process.

    or you can write a batch script to do so. (i think such script has been made in this forum before)

  15. #11
    Member
    Join Date
    Jul 2014
    Location
    Mars
    Posts
    199
    Thanks
    135
    Thanked 13 Times in 12 Posts
    this doesn`t answer the question why every iteration gives different size)

  16. #12
    Member
    Join Date
    May 2008
    Location
    Kuwait
    Posts
    354
    Thanks
    37
    Thanked 38 Times in 23 Posts
    the conclusion from my post the PSO can get better result than running cpdf several times and the gain much better. The difference in cpdf is mainly the result reordring streams.

  17. #13
    Member
    Join Date
    Jul 2014
    Location
    Mars
    Posts
    199
    Thanks
    135
    Thanked 13 Times in 12 Posts
    so why don`t we add internal reordering system to choose less size file as output?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •