Mac Automator: combine images in PDF and resize I not too familiar with Automator for Mac. I am trying to create a quick action to combine several images in a single PDF file and reduce its size with a quartz filter. The actions does indeed create the pdf but it does not reduce its file size. This is what I did:

If I create two separate quick actions (one to create the pdf from images and another one to reduce the size of a pdf file) and apply them sequentially they work correctly. But not combined into a single action. What am I doing wrong?
I think the problem is that Automator passes the incoming files to each action in turn. It doesn't pass the created PDF file in the first action to the 2nd action.
So you need to add a &quot;Get Specified Finder Items&quot; action to 'get' the PDF that you've just created, and pass it through the workflow.
Of course, none of this addresses the problem of the fixed name and location of the finished PDF.
I have written python scripts to be used in Automator workflows, which individually convert images to PDF and apply Quartz Filters (saving the file in the same folder with a unique name); it wouldn't be too difficult to modify them to do both.
https://github.com/benwiggy/PDFsuite/tree/master/Automator_Scripts