Is it possible to compress a PDF file in a workflow?
We have a customer that want to send PDF with multiple pages over email and the file size is too big for email server. I’m searching for a good way to make this.
Well then I’m afraid there’s very little you can do. Since the PDFs are not generated by OL Connect, you can’t optimize their content.
You could try mapping them to the background of an empty template to generate a new PDF out of it and see if the internal optimization routines of OL Connect make any difference, but I suspect that if the original PDFs are so large, it’s because they contain something like full-page scanned images, which cannot be optimized once they have been converted to PDF.
OK then maybe my solution can be external. Use a PDF Printer or an external program that compress the PDF in background and reload it to the workflow after.
You can automate the printing and then use another process to capture the printer queue. You can then run the captured PostScript file through the Create PDF task to see if the resulting PDF is smaller than the original one. I am not convinced it will make much of a difference, but it’s worth a try.