Timeout
Customize the timeout setting to exert control over the duration of the optimization process, allowing you to fine-tune the time allocated for the operation based on the specific requirements of your application or environment.
By default processes have a timeout of 300 seconds, however you can change it passing a different timeout (in seconds) to the setTimeout
method:
use Mostafaznv\PdfOptimizer\PdfOptimizer;
PdfOptimizer::init()->setTimeout(500)->optimize('input.pdf, 'output.pdf');
Last updated
Was this helpful?