Java library to optimize PDF documents and reduce file size. TRY LIVE DEMO
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 firstname.lastname@example.org if you would like us to produce some sample code for you.