I am trying to compress PDF files using PDFClown 0.1.2, but i am facing issue like when i try to open PDF it says "An Error exists on this page"
also tried the approach mentioned in link Stack
Below is the my code
org.pdfclown.files.File file = new org.pdfclown.files.File(newPath);
org.pdfclown.tools.Optimizer.RemoveOrphanedObjects(file);
file.Document.Configuration.XrefMode = Document.ConfigurationImpl.XRefModeEnum.Compressed;
file.Save(org.pdfclown.files.SerializationModeEnum.Standard);
Please let me know if any one has face the same issue
Thanks