Class PDFImageOptimizationWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<T>
-
- com.levigo.jadice.server.core.StreamWorker<PDFImageOptimizationNode>
-
- com.levigo.jadice.server.pdf.worker.PDFImageOptimizationWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver,WorkerController<PDFImageOptimizationNode>,Runnable
public class PDFImageOptimizationWorker extends StreamWorker<PDFImageOptimizationNode>
A worker for optimizing the size of a PDF with embedded images. This is achieved by resizing those embedded images whose resolution exceeds a given threshold.
-
-
Constructor Summary
Constructors Constructor Description PDFImageOptimizationWorker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidwork(Stream stream)Implement this method in order to work on a single stream.-
Methods inherited from class com.levigo.jadice.server.core.StreamWorker
accept, reject, work
-
Methods inherited from class com.levigo.jadice.server.core.NodeWorker
abort, abortNow, addInputBundle, addOutputBundle, doAbort, doAbortNow, error, error, error, fail, fail, fail, getController, getInputBundle, getInputBundles, getJob, getLimitSupport, getNode, getOutputBundle, getOutputBundles, getServerJob, getState, getStreamTransportFactory, getTransportSender, initialize, isAbortRequested, postWork, preWork, run, setDescriptor, setJob, toString, warn, warn, warn
-
-
-
-
Method Detail
-
work
protected void work(Stream stream) throws Throwable
Description copied from class:StreamWorkerImplement this method in order to work on a single stream.- Specified by:
workin classStreamWorker<PDFImageOptimizationNode>- Parameters:
stream- theStreamto work on- Throws:
Throwable- in case of processing failure
-
-