Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Compress: possible to disable re-compression?

Tools
2007-01-05
2013-04-29
  • I'd like to compress pdf's but only by removing duplicate resources (fonts+images) and not by re-compressing already compressed content because the process is time critical.
    In a test a 8MB PDF with many duplicate fonts and images was reduced to 4MB but it took 33sec on a decent machine. I suppose that's because all compressed objects are de-comressed and re-compressed with Flate. My assumption is that only dropping duplicate resources could be done in 5-10 seconds - which would be acceptable for our case.

    I didn't find anything in the documentation or the forum on that.

    Thanks,
    Michael

     
    • Tom Phelps
      Tom Phelps
      2007-05-23

      That's a good idea.  It shouldn't be difficult just to prevent uncompression and recompression, and see how much it affects the size of the result and run time.  I'll put it on my queue.