Description
Ideal to shrink PDF files uploaded on helpdesk software, like HESK.com, although the software can also be modified for other installations.
Key features:
- Script runs on its own through a CRON URL that can be setup on your site or with an external cron script.
- Reduce PDF files to screen quality.
- It runs on a CRON URL that can be used to control when to run the script.
- This script can take some resources from your server, so ideal to run at night on extra-large sites. Every cron is written in a logfile, and the next run starts where the previous cron stops. Ideally, file sizes on a production site should be reduced over a time period.
Requirements:
- Must have GHOSTH Scrip installed on your server.
- PHP 8+
How to setup:
- Create a folder ‘tools” on your server, typically: public_html/tools
- Upload the zipfile and extract the files in the folder.
- Set up a CRON command, example: wget -O /dev/null https://yoursite.com/tools/compress_pdfs.php >/dev/null 2>&1
- Set the time to run the command, ideally late at night, and you done.



