jPDFOptimizer Source Code Samples
Here is a Java sample that use jPDFOptimizer:
SimpleOptimize.java – This program optimizes a PDF file and save the optimized PDF as a new file.
Please let us know at support@qoppa.com if you would like us to produce some sample code for you.