AnsweredAssumed Answered

Create compressed PDF from PDF

Question asked by loftux Moderator on Dec 18, 2013
Latest reply on Feb 6, 2014 by rasm
I need to make compressed versions of a PDF:s available. The original PDF are scanned documents with very high resolution (they need to be since they are historical documents that are not always of best quality to start with) and therefor very large file sizes. Now I need to make compressed version of those files available for preview and download for faster page load.

My thinking is that I can use a new thumbnail definition for this.
For the compression I can use ghostscript like this and put this into a transformer similar to the transformer.worker.Pdf2swf or transformer.worker.ImageMagick found in thirdparty subsystem.

But how do I go from there and tell the thumbnail definitions bean to use that transformer?
In the thumbnail definition I can set the target mimetype, but in this case it is the same (application/pdf).