For scenarios where the existing configuration options may not cover your specific needs, the setExtraOptions method allows you to inject custom Ghostscript options directly into the optimization script. This flexibility ensures that no aspect of the optimization process is beyond your control.