here only have the samlpe of using python, does there have sample for compress the PDF in the package of Aspose.PDF for JAVA
Please check below article to compress PDF document using Aspose.PDF for Java:
okay, i will take a try, thank you very much.