I have a requirement to dynamically generate and compress large batches of PDF files.
I am considering the usual algorithms
- Zip
- Ace
- Rar
Any other suggestion are welcome.
My question is which algorithm is likely to give me the smallest file size. Speed and efficency are also important factors but size is my primary concern.
Also does it make a difference whether I have many small files, or fewer larger files in each archive.
Most of my processing will be done in PHP, but I'm happy to interface with third party executables if needed.
Edit:
The documents are primarily invoices and shouldn't contain any other images except for the company logo